Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00219/0.00219, allocations: 180.5 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008277/0.0008277, allocations: 86.88 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08195/0.08195, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003801, allocations: 9.781 kB / 392 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.112, allocations: 50.36 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1205/0.2325, allocations: 82.24 MB / 0.5123 GB, free: 8.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.2329, allocations: 75.91 kB / 0.5124 GB, free: 8.512 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02035/0.2533, allocations: 7.145 MB / 0.5194 GB, free: 1.348 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2533, allocations: 3.938 kB / 0.5194 GB, free: 1.344 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.2533, allocations: 8 kB / 0.5194 GB, free: 1.336 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001184/0.2545, allocations: 0.6351 MB / 0.52 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.2546, allocations: 12.03 kB / 0.52 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.406e-05/0.2547, allocations: 47.52 kB / 0.52 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.2552, allocations: 290 kB / 0.5203 GB, free: 276 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.2554, allocations: 149.7 kB / 0.5205 GB, free: 108 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.864e-05/0.2555, allocations: 32 kB / 0.5205 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2489/0.5044, allocations: 0.5713 MB / 0.521 GB, free: 84.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.5045, allocations: 3.125 kB / 0.5211 GB, free: 84.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.5046, allocations: 12.22 kB / 0.5211 GB, free: 84.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.5046, allocations: 7.688 kB / 0.5211 GB, free: 84.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.5062, allocations: 0.5456 MB / 0.5216 GB, free: 84.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.5082, allocations: 1.042 MB / 0.5226 GB, free: 83.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.5097, allocations: 0.5016 MB / 0.5231 GB, free: 83.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.766e-05/0.5098, allocations: 8.75 kB / 0.5231 GB, free: 83.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.5098, allocations: 40.84 kB / 0.5232 GB, free: 83.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.925e-06/0.5098, allocations: 1.688 kB / 0.5232 GB, free: 83.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.04081/0.5507, allocations: 6.805 MB / 0.5298 GB, free: 83.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.5508, allocations: 147.2 kB / 0.5299 GB, free: 82.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.5512, allocations: 239.8 kB / 0.5302 GB, free: 82.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.48e-05/0.5512, allocations: 38.86 kB / 0.5302 GB, free: 82.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.941e-05/0.5513, allocations: 150 kB / 0.5304 GB, free: 82.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.5515, allocations: 192.3 kB / 0.5305 GB, free: 82.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-05/0.5516, allocations: 13.89 kB / 0.5306 GB, free: 82.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.473e-05/0.5517, allocations: 342.2 kB / 0.5309 GB, free: 82.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00167/0.5534, allocations: 0.6577 MB / 0.5315 GB, free: 82.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.5549, allocations: 0.8419 MB / 0.5323 GB, free: 81.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.5562, allocations: 0.6051 MB / 0.5329 GB, free: 81.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.5562, allocations: 3.344 kB / 0.5329 GB, free: 81.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003087/0.5593, allocations: 1.48 MB / 0.5344 GB, free: 81.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.5593, allocations: 6.188 kB / 0.5344 GB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.5593, allocations: 3.188 kB / 0.5344 GB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.836e-05/0.5594, allocations: 15.45 kB / 0.5344 GB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.5607, allocations: 233.5 kB / 0.5346 GB, free: 81.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/0.5607, allocations: 19.45 kB / 0.5346 GB, free: 81.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000938/0.5617, allocations: 125.5 kB / 0.5348 GB, free: 81.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-05/0.5617, allocations: 27.5 kB / 0.5348 GB, free: 81.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003351/0.5621, allocations: 203.6 kB / 0.535 GB, free: 80.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.5624, allocations: 161.1 kB / 0.5351 GB, free: 80.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001633/0.5625, allocations: 71.08 kB / 0.5352 GB, free: 80.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.5625, allocations: 11.8 kB / 0.5352 GB, free: 80.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.5626, allocations: 3.812 kB / 0.5352 GB, free: 80.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5626, allocations: 3.656 kB / 0.5352 GB, free: 80.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004123/0.5667, allocations: 2.311 MB / 0.5375 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.5667, allocations: 8 kB / 0.5375 GB, free: 79.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.5674, allocations: 211.7 kB / 0.5377 GB, free: 78.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.5675, allocations: 14.25 kB / 0.5377 GB, free: 78.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.5675, allocations: 24 kB / 0.5377 GB, free: 78.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.538e-05/0.5675, allocations: 31.88 kB / 0.5378 GB, free: 78.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.5676, allocations: 19.88 kB / 0.5378 GB, free: 78.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.5704, allocations: 2.192 MB / 0.5399 GB, free: 76.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.5707, allocations: 184.5 kB / 0.5401 GB, free: 76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.45e-05/0.5707, allocations: 24 kB / 0.5401 GB, free: 75.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.5713, allocations: 99.97 kB / 0.5402 GB, free: 75.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.5715, allocations: 103.7 kB / 0.5403 GB, free: 75.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.5716, allocations: 28 kB / 0.5403 GB, free: 75.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001556/0.5717, allocations: 197.9 kB / 0.5405 GB, free: 75.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5717, allocations: 0 / 0.5405 GB, free: 75.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006451/0.5724, allocations: 128 kB / 0.5407 GB, free: 75.43 MB / 362.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.000174/0.5726, allocations: 137.1 kB / 0.5408 GB, free: 75.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002366/0.5749, allocations: 1.209 MB / 0.542 GB, free: 74.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.575, allocations: 0 / 0.542 GB, free: 74.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008474/0.5758, allocations: 386 kB / 0.5423 GB, free: 73.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.5765, allocations: 144.4 kB / 0.5425 GB, free: 73.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.5787, allocations: 1.417 MB / 0.5439 GB, free: 72.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.579, allocations: 0.8405 MB / 0.5447 GB, free: 71.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005839/0.5796, allocations: 92.14 kB / 0.5448 GB, free: 71.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.5799, allocations: 47.42 kB / 0.5448 GB, free: 71 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5799, allocations: 0 / 0.5448 GB, free: 71 MB / 362.7 MB Notification: Performance of Templates: time 0.01017/0.5901, allocations: 7.544 MB / 0.5522 GB, free: 63.5 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,gain.y,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.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time