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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001256/0.001256, allocations: 193.2 kB / 7.849 MB, free: 2.465 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.221/1.221, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.000906/0.000906, allocations: 84.38 kB / 261.5 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07363/0.07363, allocations: 12.6 MB / 322 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.451e-06/5.481e-06, allocations: 0 / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08474/0.08476, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2803/0.3651, allocations: 81.42 MB / 0.4982 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.3654, allocations: 71.61 kB / 0.4983 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01819/0.3836, allocations: 6.748 MB / 0.5049 GB, free: 10.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.3836, allocations: 11.69 kB / 0.5049 GB, free: 10.32 MB / 330.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.0008982/0.3845, allocations: 0.6169 MB / 0.5055 GB, free: 9.828 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.3846, allocations: 11.59 kB / 0.5055 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.495e-05/0.3847, allocations: 42.28 kB / 0.5055 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.385, allocations: 299.5 kB / 0.5058 GB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.3852, allocations: 132.2 kB / 0.506 GB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.3852, allocations: 22.84 kB / 0.506 GB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005986/0.3858, allocations: 413.4 kB / 0.5064 GB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006849/0.3865, allocations: 462 kB / 0.5068 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.3865, allocations: 0 / 0.5068 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.3866, allocations: 0 / 0.5068 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.3866, allocations: 7.688 kB / 0.5068 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.3879, allocations: 0.9968 MB / 0.5078 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.3888, allocations: 364.7 kB / 0.5081 GB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.3891, allocations: 211.1 kB / 0.5083 GB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.732e-05/0.3891, allocations: 7.812 kB / 0.5083 GB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.3891, allocations: 35.22 kB / 0.5084 GB, free: 8.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.3892, allocations: 0 / 0.5084 GB, free: 8.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.008342/0.3975, allocations: 2.069 MB / 0.5104 GB, free: 7.789 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.3976, allocations: 138.8 kB / 0.5105 GB, free: 7.633 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.3978, allocations: 232.4 kB / 0.5108 GB, free: 7.508 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.919e-05/0.3979, allocations: 29.64 kB / 0.5108 GB, free: 7.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.398, allocations: 136.8 kB / 0.5109 GB, free: 7.355 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.3981, allocations: 180.8 kB / 0.5111 GB, free: 7.223 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.615e-05/0.3982, allocations: 0 / 0.5111 GB, free: 7.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.914e-05/0.3983, allocations: 349.5 kB / 0.5114 GB, free: 6.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007009/0.399, allocations: 466.1 kB / 0.5119 GB, free: 6.895 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/0.3997, allocations: 0.6271 MB / 0.5125 GB, free: 6.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.4003, allocations: 426.5 kB / 0.5129 GB, free: 6.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4003, allocations: 1.156 kB / 0.5129 GB, free: 6.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001661/0.402, allocations: 1.055 MB / 0.5139 GB, free: 6.465 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.402, allocations: 5.469 kB / 0.5139 GB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.402, allocations: 9.781 kB / 0.5139 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.4021, allocations: 9.375 kB / 0.5139 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.4035, allocations: 236.9 kB / 0.5142 GB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.4035, allocations: 12.56 kB / 0.5142 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009934/0.4045, allocations: 112.3 kB / 0.5143 GB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.576e-05/0.4046, allocations: 41.39 kB / 0.5143 GB, free: 6.348 MB / 330.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 () * 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.0001905/0.4048, allocations: 124 kB / 0.5144 GB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000276/0.4051, allocations: 149.1 kB / 0.5146 GB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.4052, allocations: 44.02 kB / 0.5146 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.4053, allocations: 8.344 kB / 0.5146 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.4053, allocations: 2.219 kB / 0.5146 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.4053, allocations: 5.109 kB / 0.5146 GB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.4087, allocations: 1.928 MB / 0.5165 GB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.4087, allocations: 11.34 kB / 0.5165 GB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/0.4095, allocations: 207.3 kB / 0.5167 GB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.741e-05/0.4096, allocations: 15 kB / 0.5167 GB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-05/0.4096, allocations: 14.31 kB / 0.5168 GB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.285e-05/0.4096, allocations: 21.67 kB / 0.5168 GB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/0.4096, allocations: 14.94 kB / 0.5168 GB, free: 4.992 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001464/0.4111, allocations: 1.723 MB / 0.5185 GB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.4113, allocations: 178.5 kB / 0.5186 GB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.771e-05/0.4114, allocations: 20.73 kB / 0.5187 GB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006593/0.4121, allocations: 92.73 kB / 0.5188 GB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.4123, allocations: 99.09 kB / 0.5188 GB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.559e-05/0.4123, allocations: 36.17 kB / 0.5189 GB, free: 3.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000143/0.4125, allocations: 176.9 kB / 0.5191 GB, free: 3.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006425/0.4131, allocations: 103.1 kB / 0.5191 GB, free: 3.254 MB / 330.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 () * 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.0001409/0.4133, allocations: 132.3 kB / 0.5193 GB, free: 3.137 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.4145, allocations: 0.8291 MB / 0.5201 GB, free: 3.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4145, allocations: 0.7188 kB / 0.5201 GB, free: 3.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.4149, allocations: 220.9 kB / 0.5203 GB, free: 3.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.4156, allocations: 125 kB / 0.5204 GB, free: 3.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.4175, allocations: 0.9843 MB / 0.5214 GB, free: 2.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006337/0.4181, allocations: 0.8868 MB / 0.5222 GB, free: 1.531 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4181, allocations: 0 / 0.5222 GB, free: 1.531 MB / 330.7 MB Notification: Performance of Templates: time 0.0131/0.4312, allocations: 8.668 MB / 0.5307 GB, free: 11.01 MB / 346.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