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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 107.3 kB / 16.45 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 189.6 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08254/0.08254, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 85.61 kB / 394.1 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09859/0.1004, allocations: 49.4 MB / 443.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.00394/0.1044, allocations: 2.343 MB / 445.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.1059, allocations: 0.8348 MB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1061, allocations: 7.938 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003293/0.1065, allocations: 55.58 kB / 446.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.1067, allocations: 59.48 kB / 446.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004995/0.1072, allocations: 171.7 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.1076, allocations: 387.2 kB / 447.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.1078, allocations: 111.8 kB / 447.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.1081, allocations: 163.5 kB / 447.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.1083, allocations: 183.2 kB / 447.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.098e-05/0.1084, allocations: 32 kB / 447.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.768e-05/0.1084, allocations: 36 kB / 447.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1086, allocations: 95.77 kB / 448 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.1087, allocations: 143.2 kB / 448.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000357/0.1091, allocations: 334.8 kB / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1091, allocations: 0 / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1091, allocations: 0 / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1091, allocations: 4 kB / 448.5 MB, free: 11.54 MB / 334.1 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.001164/0.1103, allocations: 0.62 MB / 449.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1103, allocations: 8.031 kB / 449.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.939e-05/0.1104, allocations: 44.56 kB / 449.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.1108, allocations: 276.3 kB / 449.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.111, allocations: 138.3 kB / 449.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.1111, allocations: 32.38 kB / 449.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.1122, allocations: 0.5752 MB / 450.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1123, allocations: 0 / 450.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.1123, allocations: 12 kB / 450.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.1123, allocations: 8 kB / 450.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.1137, allocations: 0.5074 MB / 450.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.1152, allocations: 1.006 MB / 451.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.1169, allocations: 0.5063 MB / 452.2 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005993/0.1175, allocations: 255.4 kB / 452.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.1175, allocations: 8 kB / 452.5 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.1176, allocations: 46.5 kB / 452.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.974e-06/0.1176, allocations: 3.938 kB / 452.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0376/0.1552, allocations: 5.707 MB / 458.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.1554, allocations: 148.9 kB / 458.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.1556, allocations: 199.4 kB / 458.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.535e-05/0.1557, allocations: 37.7 kB / 458.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1558, allocations: 141.5 kB / 458.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.156, allocations: 197.3 kB / 458.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/0.1563, allocations: 106.7 kB / 459 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1564, allocations: 346.8 kB / 459.4 MB, free: 304 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.158, allocations: 0.6149 MB / 460 MB, free: 15.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.1597, allocations: 0.8002 MB / 460.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002995/0.1627, allocations: 1.244 MB / 462 MB, free: 13.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1628, allocations: 4 kB / 462 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00348/0.1662, allocations: 1.394 MB / 463.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1663, allocations: 7.984 kB / 463.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.1663, allocations: 8.312 kB / 463.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/0.1663, allocations: 8 kB / 463.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.1676, allocations: 211.6 kB / 463.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/0.1677, allocations: 19.97 kB / 463.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009186/0.1686, allocations: 99.72 kB / 463.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.361e-05/0.1687, allocations: 31.98 kB / 463.8 MB, free: 11.7 MB / 350.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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003262/0.169, allocations: 177.6 kB / 464 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002938/0.1693, allocations: 161 kB / 464.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.1695, allocations: 67.25 kB / 464.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.1695, allocations: 8 kB / 464.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.1695, allocations: 8.453 kB / 464.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.1696, allocations: 0 / 464.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004673/0.1742, allocations: 2.163 MB / 466.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.1743, allocations: 12 kB / 466.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007376/0.175, allocations: 184.4 kB / 466.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.397e-05/0.175, allocations: 16 kB / 466.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.1751, allocations: 24 kB / 466.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.495e-05/0.1751, allocations: 23.94 kB / 466.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.1751, allocations: 11.94 kB / 466.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003258/0.1784, allocations: 1.561 MB / 468.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.1786, allocations: 156.7 kB / 468.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.1787, allocations: 31.98 kB / 468.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005816/0.1793, allocations: 75.91 kB / 468.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.1795, allocations: 95.73 kB / 468.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/0.1795, allocations: 28 kB / 468.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.1797, allocations: 141.2 kB / 468.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1797, allocations: 4 kB / 468.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006395/0.1803, allocations: 120 kB / 468.8 MB, free: 6.289 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001616/0.1805, allocations: 142.9 kB / 469 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.1833, allocations: 1.139 MB / 470.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.1833, allocations: 0 / 470.1 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000993/0.1843, allocations: 339.6 kB / 470.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008711/0.1852, allocations: 137.4 kB / 470.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.1877, allocations: 1.17 MB / 471.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.1882, allocations: 0.8167 MB / 472.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004791/0.1887, allocations: 95.31 kB / 472.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/0.189, allocations: 39.44 kB / 472.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.189, allocations: 4 kB / 472.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of Templates: time 0.01479/0.2038, allocations: 8.565 MB / 481.3 MB, free: 9.645 MB / 366.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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