Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 176.8 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.459/1.459, 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.0008659/0.0008659, allocations: 102.8 kB / 270.3 MB, free: 13.34 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.06711/0.06711, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 17.41 kB / 392 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07812/0.0785, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1054/0.1839, allocations: 82.16 MB / 0.5122 GB, free: 8.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.1843, allocations: 75.95 kB / 0.5123 GB, free: 8.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02/0.2043, allocations: 7.07 MB / 0.5192 GB, free: 1.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2043, allocations: 0 / 0.5192 GB, free: 1.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.2043, allocations: 11.94 kB / 0.5192 GB, free: 1.508 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001174/0.2055, allocations: 0.6004 MB / 0.5198 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2056, allocations: 11.97 kB / 0.5198 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.819e-05/0.2056, allocations: 35.62 kB / 0.5198 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.206, allocations: 267.1 kB / 0.5201 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.2062, allocations: 145.7 kB / 0.5202 GB, free: 356 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.693e-05/0.2063, allocations: 35.91 kB / 0.5203 GB, free: 320 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.176/0.3823, allocations: 0.5619 MB / 0.5208 GB, free: 84.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.3824, allocations: 3.031 kB / 0.5208 GB, free: 84.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.3824, allocations: 11.97 kB / 0.5208 GB, free: 84.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3825, allocations: 7.891 kB / 0.5208 GB, free: 84.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.3839, allocations: 0.5513 MB / 0.5214 GB, free: 84.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.3853, allocations: 1.021 MB / 0.5224 GB, free: 84.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.3867, allocations: 0.4942 MB / 0.5229 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.3867, allocations: 9.016 kB / 0.5229 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.3868, allocations: 43.98 kB / 0.5229 GB, free: 83.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.294e-06/0.3868, allocations: 0 / 0.5229 GB, free: 83.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.03947/0.4263, allocations: 6.768 MB / 0.5295 GB, free: 83.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.456e-05/0.4264, allocations: 148 kB / 0.5297 GB, free: 83.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.4267, allocations: 193.3 kB / 0.5298 GB, free: 83.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.66e-05/0.4268, allocations: 37.3 kB / 0.5299 GB, free: 83.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.941e-05/0.4268, allocations: 144.9 kB / 0.53 GB, free: 83.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.427, allocations: 193.1 kB / 0.5302 GB, free: 83.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/0.4271, allocations: 12.73 kB / 0.5302 GB, free: 83.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.4272, allocations: 342.6 kB / 0.5305 GB, free: 82.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.4289, allocations: 0.6613 MB / 0.5312 GB, free: 82.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.4306, allocations: 0.8359 MB / 0.532 GB, free: 82.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.4319, allocations: 0.6039 MB / 0.5326 GB, free: 82.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.4319, allocations: 7.5 kB / 0.5326 GB, free: 82.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003046/0.4349, allocations: 1.48 MB / 0.534 GB, free: 81.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.435, allocations: 7.719 kB / 0.5341 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.435, allocations: 7.688 kB / 0.5341 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.435, allocations: 11.73 kB / 0.5341 GB, free: 81.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.4363, allocations: 232 kB / 0.5343 GB, free: 81.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.4363, allocations: 19.39 kB / 0.5343 GB, free: 81.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009369/0.4373, allocations: 119.5 kB / 0.5344 GB, free: 81.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.1e-05/0.4374, allocations: 30.42 kB / 0.5345 GB, free: 81.49 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.0003238/0.4377, allocations: 181.8 kB / 0.5346 GB, free: 81.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.438, allocations: 154.8 kB / 0.5348 GB, free: 81.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.4382, allocations: 66.92 kB / 0.5348 GB, free: 81.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.4382, allocations: 11.67 kB / 0.5349 GB, free: 81.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.4382, allocations: 0 / 0.5349 GB, free: 81.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.4382, allocations: 3.375 kB / 0.5349 GB, free: 81.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004239/0.4424, allocations: 2.308 MB / 0.5371 GB, free: 79.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-05/0.4425, allocations: 15.94 kB / 0.5371 GB, free: 79.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007028/0.4432, allocations: 202.1 kB / 0.5373 GB, free: 79.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.52e-05/0.4432, allocations: 12 kB / 0.5373 GB, free: 79.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/0.4433, allocations: 28 kB / 0.5374 GB, free: 79.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.445e-05/0.4433, allocations: 27.88 kB / 0.5374 GB, free: 79.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.016e-06/0.4433, allocations: 19.88 kB / 0.5374 GB, free: 79.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.4462, allocations: 2.184 MB / 0.5395 GB, free: 76.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.4464, allocations: 172.5 kB / 0.5397 GB, free: 76.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.257e-05/0.4465, allocations: 24 kB / 0.5397 GB, free: 76.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00057/0.4471, allocations: 99.97 kB / 0.5398 GB, free: 76.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.4473, allocations: 103.7 kB / 0.5399 GB, free: 76.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-05/0.4473, allocations: 36 kB / 0.5399 GB, free: 76.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001262/0.4474, allocations: 145.2 kB / 0.5401 GB, free: 76.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4475, allocations: 0 / 0.5401 GB, free: 76.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006805/0.4481, allocations: 127.9 kB / 0.5402 GB, free: 75.96 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.0001628/0.4483, allocations: 144 kB / 0.5403 GB, free: 75.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.4508, allocations: 1.201 MB / 0.5415 GB, free: 74.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.4508, allocations: 4.312 kB / 0.5415 GB, free: 74.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008643/0.4517, allocations: 381.8 kB / 0.5419 GB, free: 74.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.4522, allocations: 136.6 kB / 0.542 GB, free: 74.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.4542, allocations: 1.34 MB / 0.5433 GB, free: 72.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.4545, allocations: 0.8284 MB / 0.5441 GB, free: 71.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005923/0.4551, allocations: 91.36 kB / 0.5442 GB, free: 71.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.4554, allocations: 39.44 kB / 0.5443 GB, free: 71.64 MB / 362.7 MB Notification: Performance of SimCode: time 9.51e-07/0.4554, allocations: 0 / 0.5443 GB, free: 71.64 MB / 362.7 MB Notification: Performance of Templates: time 0.01031/0.4657, allocations: 7.35 MB / 0.5514 GB, free: 64.32 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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,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,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,subSample1.factor,super.factor,super.inferFactor,time