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.001118/0.001118, allocations: 96.59 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 178.3 kB / 16.61 MB, free: 6.426 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.663/1.663, allocations: 205.4 MB / 222.8 MB, free: 5.68 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.09113/0.09113, allocations: 12.6 MB / 283.6 MB, free: 8.711 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.0007703/0.0007703, allocations: 16 kB / 344.5 MB, free: 21.31 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1111, allocations: 50.38 MB / 394.9 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002382/0.1136, allocations: 1.752 MB / 396.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1147, allocations: 0.664 MB / 397.3 MB, free: 396 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1148, allocations: 3.938 kB / 397.3 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.115, allocations: 31.83 kB / 397.3 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.1152, allocations: 47.84 kB / 397.4 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.1155, allocations: 95.88 kB / 397.5 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.1158, allocations: 199.6 kB / 397.7 MB, free: 16 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.116, allocations: 60.09 kB / 397.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003/0.1163, allocations: 127.5 kB / 397.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.1166, allocations: 131.5 kB / 398 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.1166, allocations: 23.94 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.762e-05/0.1167, allocations: 16 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-05/0.1168, allocations: 63.86 kB / 398.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.657e-05/0.1168, allocations: 57.58 kB / 398.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.117, allocations: 207.7 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.1171, allocations: 0 / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1171, allocations: 0 / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1171, allocations: 0 / 398.3 MB, free: 15.34 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.001204/0.1183, allocations: 0.5493 MB / 398.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.1183, allocations: 8.031 kB / 398.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.804e-05/0.1184, allocations: 35.7 kB / 398.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.1188, allocations: 239.2 kB / 399.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002489/0.119, allocations: 145.6 kB / 399.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.987e-05/0.1191, allocations: 20 kB / 399.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009054/0.12, allocations: 387.5 kB / 399.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1201, allocations: 3.906 kB / 399.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.1201, allocations: 4 kB / 399.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1201, allocations: 8 kB / 399.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.1215, allocations: 0.5096 MB / 400.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.1233, allocations: 1.031 MB / 401.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.1245, allocations: 355.1 kB / 401.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.1246, allocations: 4.188 kB / 401.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.1246, allocations: 42.72 kB / 401.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.993e-06/0.1246, allocations: 0 / 401.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02752/0.1522, allocations: 6.663 MB / 408.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.1522, allocations: 59.84 kB / 408.4 MB, free: 4.984 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.1526, allocations: 190.3 kB / 408.6 MB, free: 4.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.495e-05/0.1527, allocations: 37.7 kB / 408.6 MB, free: 4.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.1529, allocations: 156.6 kB / 408.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.1531, allocations: 173.5 kB / 408.9 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.1532, allocations: 12 kB / 408.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1534, allocations: 334.8 kB / 409.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.1547, allocations: 0.4969 MB / 409.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.156, allocations: 0.549 MB / 410.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.1573, allocations: 434 kB / 410.7 MB, free: 2.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1573, allocations: 3.938 kB / 410.7 MB, free: 2.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002869/0.1602, allocations: 1.065 MB / 411.8 MB, free: 1.504 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1602, allocations: 4 kB / 411.8 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.1603, allocations: 4 kB / 411.8 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.1603, allocations: 0 / 411.8 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.1613, allocations: 191.8 kB / 412 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.1613, allocations: 0 / 412 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.1621, allocations: 119.8 kB / 412.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.1621, allocations: 16 kB / 412.1 MB, free: 1.172 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.moving[1],kinematicPTP.noWphase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000255/0.1624, allocations: 169.4 kB / 412.3 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.958e-05/0.1625, allocations: 31.61 kB / 412.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.837e-05/0.1626, allocations: 51.31 kB / 412.4 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1626, allocations: 4 kB / 412.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1626, allocations: 0 / 412.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1626, allocations: 7.984 kB / 412.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.1669, allocations: 1.998 MB / 414.4 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.167, allocations: 8 kB / 414.4 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.1676, allocations: 164.1 kB / 414.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.364e-05/0.1676, allocations: 12 kB / 414.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.1677, allocations: 16 kB / 414.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.5e-05/0.1677, allocations: 19.92 kB / 414.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.1677, allocations: 11.94 kB / 414.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/0.1712, allocations: 1.748 MB / 416.4 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.1713, allocations: 140.8 kB / 416.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.212e-05/0.1714, allocations: 20 kB / 416.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/0.1719, allocations: 99.91 kB / 416.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.1721, allocations: 91.67 kB / 416.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.1723, allocations: 24 kB / 416.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001541/0.1724, allocations: 148.3 kB / 416.9 MB, free: 11.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1724, allocations: 4 kB / 416.9 MB, free: 11.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005277/0.173, allocations: 92 kB / 417 MB, free: 11.8 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 (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.0001397/0.1731, allocations: 127 kB / 417.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.1754, allocations: 0.9157 MB / 418 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1754, allocations: 4 kB / 418 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009942/0.1764, allocations: 365.7 kB / 418.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.1769, allocations: 47.97 kB / 418.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1792, allocations: 1.164 MB / 419.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.1796, allocations: 0.7882 MB / 420.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004479/0.18, allocations: 79.23 kB / 420.4 MB, free: 8.156 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.1802, allocations: 27.44 kB / 420.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1802, allocations: 0 / 420.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of Templates: time 0.0086/0.1888, allocations: 5.017 MB / 425.5 MB, free: 3.109 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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