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.001699/0.001699, allocations: 172.3 kB / 16.8 MB, free: 5.023 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.496/1.496, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007686/0.0007686, allocations: 96.06 kB / 271.3 MB, free: 8.242 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.08118/0.08118, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004311/0.0004312, allocations: 19.94 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08743/0.08788, allocations: 50.37 MB / 443.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3279/0.4159, allocations: 82.2 MB / 0.5135 GB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4161, allocations: 71.05 kB / 0.5135 GB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01841/0.4345, allocations: 7.08 MB / 0.5204 GB, free: 7.781 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4346, allocations: 0 / 0.5204 GB, free: 7.781 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.4346, allocations: 12 kB / 0.5205 GB, free: 7.77 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0011/0.4357, allocations: 0.5931 MB / 0.521 GB, free: 7.152 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4358, allocations: 8.031 kB / 0.521 GB, free: 7.145 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.4359, allocations: 40.5 kB / 0.5211 GB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.4363, allocations: 267.1 kB / 0.5213 GB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.4365, allocations: 147.4 kB / 0.5215 GB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.879e-05/0.4365, allocations: 37.16 kB / 0.5215 GB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.4376, allocations: 0.5882 MB / 0.5221 GB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.4376, allocations: 0 / 0.5221 GB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.4377, allocations: 11.31 kB / 0.5221 GB, free: 6.176 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.4377, allocations: 4 kB / 0.5221 GB, free: 6.172 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.4389, allocations: 0.545 MB / 0.5226 GB, free: 5.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.4404, allocations: 1.022 MB / 0.5236 GB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.4417, allocations: 0.4951 MB / 0.5241 GB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00057/0.4423, allocations: 284.7 kB / 0.5244 GB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.16e-05/0.4424, allocations: 11.73 kB / 0.5244 GB, free: 4.195 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.4424, allocations: 45.75 kB / 0.5244 GB, free: 4.145 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.444e-06/0.4424, allocations: 0 / 0.5244 GB, free: 4.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.03755/0.48, allocations: 6.757 MB / 0.531 GB, free: 14.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002128/0.4802, allocations: 155.5 kB / 0.5312 GB, free: 13.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.4807, allocations: 206.3 kB / 0.5314 GB, free: 13.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.4809, allocations: 38.45 kB / 0.5314 GB, free: 13.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.481, allocations: 143.2 kB / 0.5316 GB, free: 13.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003294/0.4814, allocations: 200.1 kB / 0.5318 GB, free: 13.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.4815, allocations: 14.31 kB / 0.5318 GB, free: 13.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.4817, allocations: 344.5 kB / 0.5321 GB, free: 13.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002939/0.4847, allocations: 0.6567 MB / 0.5327 GB, free: 12.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003217/0.4879, allocations: 0.8403 MB / 0.5336 GB, free: 12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005718/0.4937, allocations: 1.329 MB / 0.5349 GB, free: 11.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-05/0.4937, allocations: 4 kB / 0.5349 GB, free: 11.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.007296/0.5011, allocations: 1.476 MB / 0.5363 GB, free: 10.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/0.5012, allocations: 7.938 kB / 0.5363 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.5012, allocations: 12 kB / 0.5363 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.99e-05/0.5013, allocations: 12.12 kB / 0.5363 GB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002568/0.5039, allocations: 226.9 kB / 0.5365 GB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.839e-05/0.5039, allocations: 20.19 kB / 0.5366 GB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.5058, allocations: 122.3 kB / 0.5367 GB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/0.506, allocations: 27 kB / 0.5367 GB, free: 9.625 MB / 346.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.0005456/0.5065, allocations: 183.9 kB / 0.5369 GB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006004/0.5072, allocations: 156.5 kB / 0.537 GB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002312/0.5074, allocations: 63.48 kB / 0.5371 GB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.333e-05/0.5074, allocations: 8 kB / 0.5371 GB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.925e-05/0.5075, allocations: 7.938 kB / 0.5371 GB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.49e-05/0.5075, allocations: 3.984 kB / 0.5371 GB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009413/0.5169, allocations: 2.308 MB / 0.5394 GB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.223e-05/0.517, allocations: 8.094 kB / 0.5394 GB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.5184, allocations: 199.5 kB / 0.5396 GB, free: 7.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-05/0.5185, allocations: 19.94 kB / 0.5396 GB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-05/0.5186, allocations: 30.61 kB / 0.5396 GB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.099e-05/0.5186, allocations: 19.88 kB / 0.5396 GB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.057e-05/0.5187, allocations: 15.94 kB / 0.5396 GB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005172/0.5239, allocations: 1.671 MB / 0.5413 GB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.5243, allocations: 166.8 kB / 0.5414 GB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.5245, allocations: 30.5 kB / 0.5415 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008883/0.5254, allocations: 100.8 kB / 0.5416 GB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/0.5257, allocations: 106.2 kB / 0.5417 GB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.5258, allocations: 39.3 kB / 0.5417 GB, free: 5.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001931/0.526, allocations: 144.1 kB / 0.5418 GB, free: 4.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.705e-06/0.526, allocations: 0 / 0.5418 GB, free: 4.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001101/0.5271, allocations: 126.8 kB / 0.542 GB, free: 4.844 MB / 346.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.0002487/0.5273, allocations: 134.7 kB / 0.5421 GB, free: 4.711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.5305, allocations: 1.207 MB / 0.5433 GB, free: 3.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.5305, allocations: 8.062 kB / 0.5433 GB, free: 3.871 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.5315, allocations: 375.8 kB / 0.5436 GB, free: 3.559 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.5326, allocations: 146.4 kB / 0.5438 GB, free: 3.453 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.5352, allocations: 1.349 MB / 0.5451 GB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.5357, allocations: 0.8167 MB / 0.5459 GB, free: 1.242 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006887/0.5364, allocations: 91.38 kB / 0.546 GB, free: 1.152 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.5367, allocations: 43.36 kB / 0.546 GB, free: 1.109 MB / 346.7 MB Notification: Performance of SimCode: time 2.445e-06/0.5367, allocations: 0 / 0.546 GB, free: 1.109 MB / 346.7 MB Notification: Performance of Templates: time 0.01464/0.5513, allocations: 7.381 MB / 0.5532 GB, free: 9.738 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/jenkins1/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