Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00772/0.00772, allocations: 89.23 kB / 15.91 MB, free: 6.301 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.001612/0.001612, allocations: 195.5 kB / 16.83 MB, free: 6.234 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.555/1.555, allocations: 205.1 MB / 222.7 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07646/0.07646, allocations: 12.6 MB / 282.6 MB, free: 8.895 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.001735/0.001735, allocations: 83.89 kB / 342.8 MB, free: 21.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1098, allocations: 49.39 MB / 392.2 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.003368/0.1132, allocations: 2.191 MB / 394.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1144, allocations: 0.6831 MB / 395.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1145, allocations: 11.94 kB / 395.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.1148, allocations: 39.83 kB / 395.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.115, allocations: 39.69 kB / 395.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.1153, allocations: 103.9 kB / 395.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.1156, allocations: 327.2 kB / 395.6 MB, free: 336 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.1158, allocations: 64.39 kB / 395.6 MB, free: 272 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.1159, allocations: 131.5 kB / 395.8 MB, free: 140 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.1161, allocations: 151.4 kB / 395.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.119e-05/0.1162, allocations: 16 kB / 395.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.149e-05/0.1162, allocations: 24 kB / 395.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.194e-05/0.1163, allocations: 71.73 kB / 396 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.1164, allocations: 115.4 kB / 396.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.1167, allocations: 271 kB / 396.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.1167, allocations: 0 / 396.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.1167, allocations: 3.938 kB / 396.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1167, allocations: 0 / 396.4 MB, free: 15.5 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001057/0.1178, allocations: 0.569 MB / 397 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1178, allocations: 8.031 kB / 397 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.1179, allocations: 32.66 kB / 397 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.1182, allocations: 256.4 kB / 397.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.1184, allocations: 134.2 kB / 397.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.1185, allocations: 27.88 kB / 397.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007436/0.1192, allocations: 371.5 kB / 397.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1192, allocations: 0 / 397.8 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.1193, allocations: 8 kB / 397.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.1193, allocations: 12 kB / 397.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.1205, allocations: 493.9 kB / 398.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.1222, allocations: 1.011 MB / 399.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1233, allocations: 340.8 kB / 399.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004233/0.1237, allocations: 177.2 kB / 399.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-05/0.1238, allocations: 8.172 kB / 399.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.1238, allocations: 34.8 kB / 399.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.232e-06/0.1238, allocations: 0 / 399.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02717/0.151, allocations: 5.788 MB / 405.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1511, allocations: 59.84 kB / 405.7 MB, free: 5.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.1514, allocations: 194.2 kB / 405.9 MB, free: 5.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.1514, allocations: 37.7 kB / 405.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.043e-05/0.1515, allocations: 148.6 kB / 406 MB, free: 5.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.1517, allocations: 173.5 kB / 406.2 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.1519, allocations: 86.27 kB / 406.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1521, allocations: 346.8 kB / 406.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.1532, allocations: 460.8 kB / 407.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.1546, allocations: 0.5138 MB / 407.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/0.1567, allocations: 0.8111 MB / 408.4 MB, free: 3.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.1567, allocations: 4 kB / 408.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002514/0.1592, allocations: 0.9826 MB / 409.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.1593, allocations: 16.06 kB / 409.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1593, allocations: 0 / 409.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.1593, allocations: 4 kB / 409.4 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009473/0.1603, allocations: 171.7 kB / 409.6 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.1603, allocations: 8 kB / 409.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006392/0.1609, allocations: 83.89 kB / 409.7 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.477e-05/0.161, allocations: 20 kB / 409.7 MB, free: 1.793 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.000212/0.1612, allocations: 158 kB / 409.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.1613, allocations: 35.56 kB / 409.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.555e-05/0.1614, allocations: 51.3 kB / 409.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1614, allocations: 4 kB / 409.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1614, allocations: 0 / 409.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1615, allocations: 0 / 409.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003869/0.1653, allocations: 1.885 MB / 411.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.1654, allocations: 8 kB / 411.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/0.166, allocations: 147.8 kB / 412 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.822e-05/0.166, allocations: 15.94 kB / 412 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.166, allocations: 20.31 kB / 412 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.085e-05/0.1661, allocations: 19.94 kB / 412 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/0.1661, allocations: 11.94 kB / 412 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/0.1686, allocations: 1.221 MB / 413.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.1688, allocations: 152.8 kB / 413.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.58e-05/0.1689, allocations: 20 kB / 413.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.1694, allocations: 71.91 kB / 413.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.1695, allocations: 87.67 kB / 413.6 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.1696, allocations: 24 kB / 413.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.1697, allocations: 152.2 kB / 413.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1698, allocations: 0 / 413.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.1702, allocations: 96 kB / 413.9 MB, free: 13.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001511/0.1704, allocations: 127 kB / 414 MB, free: 13.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.1724, allocations: 0.8492 MB / 414.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1724, allocations: 0 / 414.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008536/0.1733, allocations: 329.8 kB / 415.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005792/0.1738, allocations: 55.97 kB / 415.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.1759, allocations: 1.14 MB / 416.3 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.1762, allocations: 0.7804 MB / 417.1 MB, free: 9.879 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004748/0.1767, allocations: 75.25 kB / 417.2 MB, free: 9.805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.1769, allocations: 31.42 kB / 417.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1769, allocations: 0 / 417.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of Templates: time 0.009148/0.1861, allocations: 5.246 MB / 422.5 MB, free: 4.523 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches