Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008025/0.0008024, allocations: 101.9 kB / 17.01 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000959/0.0009593, allocations: 198.5 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002692, allocations: 4 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09218, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002232/0.09445, allocations: 1.942 MB / 360.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.09588, allocations: 0.7721 MB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.09609, allocations: 7.938 kB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.09626, allocations: 39.77 kB / 361.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.09647, allocations: 51.67 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004323/0.09691, allocations: 127.8 kB / 361.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003305/0.09725, allocations: 335.6 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.09739, allocations: 74 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.0976, allocations: 143.5 kB / 362.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.09778, allocations: 139.4 kB / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.09782, allocations: 16 kB / 362.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.593e-05/0.09786, allocations: 16 kB / 362.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-05/0.09795, allocations: 83.77 kB / 362.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.681e-05/0.09801, allocations: 65.58 kB / 362.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.09822, allocations: 219.7 kB / 362.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.09823, allocations: 3.938 kB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.518e-06/0.09824, allocations: 0 / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.09825, allocations: 3.938 kB / 362.6 MB, free: 9.395 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009333/0.09919, allocations: 0.5771 MB / 363.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.34e-05/0.09922, allocations: 8.031 kB / 363.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.215e-05/0.09929, allocations: 39.62 kB / 363.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.09957, allocations: 270.5 kB / 363.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.09976, allocations: 145.6 kB / 363.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.09982, allocations: 28 kB / 363.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.1009, allocations: 0.5533 MB / 364.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1009, allocations: 7.984 kB / 364.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.1009, allocations: 15.94 kB / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1009, allocations: 8 kB / 364.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.1023, allocations: 0.5269 MB / 364.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.1036, allocations: 1.026 MB / 365.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.1051, allocations: 0.5102 MB / 366.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005892/0.1057, allocations: 271.8 kB / 366.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-05/0.1057, allocations: 12.31 kB / 366.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.1058, allocations: 50.69 kB / 366.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.543e-06/0.1058, allocations: 0 / 366.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2145/0.3203, allocations: 6.734 MB / 373.4 MB, free: 19.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.3205, allocations: 149.9 kB / 373.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002769/0.3207, allocations: 197.3 kB / 373.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.444e-05/0.3208, allocations: 37.7 kB / 373.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.994e-05/0.3209, allocations: 142.3 kB / 373.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.3212, allocations: 190.2 kB / 374.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-05/0.3212, allocations: 13.84 kB / 374.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.651e-05/0.3213, allocations: 344 kB / 374.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.3228, allocations: 0.6552 MB / 375.1 MB, free: 18.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.3244, allocations: 0.8332 MB / 375.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.3257, allocations: 0.5986 MB / 376.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3257, allocations: 6.75 kB / 376.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003168/0.3289, allocations: 1.463 MB / 378 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.3289, allocations: 13.23 kB / 378 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.3289, allocations: 6.188 kB / 378 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.329, allocations: 10.36 kB / 378 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.3302, allocations: 232.4 kB / 378.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.3303, allocations: 13.31 kB / 378.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008451/0.3311, allocations: 124.3 kB / 378.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/0.3312, allocations: 28.97 kB / 378.4 MB, free: 17.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002539/0.3315, allocations: 180.5 kB / 378.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.3317, allocations: 158.2 kB / 378.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.3319, allocations: 63.88 kB / 378.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.3319, allocations: 11.47 kB / 378.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.3319, allocations: 1.188 kB / 378.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.332, allocations: 10.55 kB / 378.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004322/0.3363, allocations: 2.281 MB / 381.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.3363, allocations: 11.17 kB / 381.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007083/0.337, allocations: 203.4 kB / 381.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-05/0.3371, allocations: 16.27 kB / 381.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.3371, allocations: 27.95 kB / 381.4 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.662e-05/0.3371, allocations: 19.86 kB / 381.4 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/0.3372, allocations: 19.5 kB / 381.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.3401, allocations: 1.662 MB / 383.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.3403, allocations: 166.2 kB / 383.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.359e-05/0.3404, allocations: 26.06 kB / 383.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.3409, allocations: 96.2 kB / 383.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.3411, allocations: 102.3 kB / 383.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.927e-05/0.3412, allocations: 31.02 kB / 383.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.3413, allocations: 141 kB / 383.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3413, allocations: 1.344 kB / 383.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000694/0.342, allocations: 120.9 kB / 383.7 MB, free: 14.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001313/0.3421, allocations: 140.5 kB / 383.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002649/0.3448, allocations: 1.185 MB / 385.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.3448, allocations: 1.938 kB / 385.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00093/0.3457, allocations: 377.7 kB / 385.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008304/0.3466, allocations: 146.7 kB / 385.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.3486, allocations: 1.322 MB / 386.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.3489, allocations: 0.8165 MB / 387.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005719/0.3495, allocations: 97.09 kB / 387.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002698/0.3498, allocations: 42.66 kB / 387.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3498, allocations: 0 / 387.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of Templates: time 0.01073/0.3605, allocations: 7.251 MB / 395.1 MB, free: 9.254 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time