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.0009031/0.0009033, allocations: 84.19 kB / 15.75 MB, free: 416 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.001054/0.001055, allocations: 176.2 kB / 16.63 MB, free: 6.887 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.888/1.888, allocations: 205.4 MB / 222.8 MB, free: 5.617 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.09498/0.09498, allocations: 12.6 MB / 283.7 MB, free: 8.68 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.0007512/0.0007514, allocations: 20 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1035, allocations: 50.38 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002312/0.1058, allocations: 1.79 MB / 396.7 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.1069, allocations: 0.6561 MB / 397.4 MB, free: 328 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.107, allocations: 3.938 kB / 397.4 MB, free: 324 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.1072, allocations: 39.77 kB / 397.4 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.1074, allocations: 31.77 kB / 397.4 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.1077, allocations: 95.88 kB / 397.5 MB, free: 156 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.108, allocations: 307.3 kB / 397.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.1081, allocations: 56.12 kB / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.1083, allocations: 123.4 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1085, allocations: 135.5 kB / 398.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.1085, allocations: 12 kB / 398.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.386e-05/0.1086, allocations: 20 kB / 398.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.1087, allocations: 67.78 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.518e-05/0.1087, allocations: 61.58 kB / 398.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.1089, allocations: 199.7 kB / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1089, allocations: 0 / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1089, allocations: 0 / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1089, allocations: 0 / 398.5 MB, free: 15.18 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.0009526/0.1099, allocations: 0.5493 MB / 399 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.1099, allocations: 8.031 kB / 399 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.81e-05/0.11, allocations: 35.72 kB / 399.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.1103, allocations: 251.2 kB / 399.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.1105, allocations: 137.6 kB / 399.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.1106, allocations: 31.98 kB / 399.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007737/0.1113, allocations: 371.6 kB / 399.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.1114, allocations: 11.91 kB / 399.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.1114, allocations: 8 kB / 399.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.1114, allocations: 8 kB / 399.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1127, allocations: 0.5096 MB / 400.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1144, allocations: 1.027 MB / 401.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.1154, allocations: 359 kB / 401.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.1159, allocations: 189.2 kB / 401.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.024e-05/0.116, allocations: 8.219 kB / 402 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.116, allocations: 34.8 kB / 402 MB, free: 11.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.633e-06/0.116, allocations: 0 / 402 MB, free: 11.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.024/0.14, allocations: 6.663 MB / 408.7 MB, free: 4.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.1401, allocations: 67.72 kB / 408.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1404, allocations: 198.3 kB / 408.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.824e-05/0.1404, allocations: 29.7 kB / 408.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.1405, allocations: 156.6 kB / 409.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.1407, allocations: 173.5 kB / 409.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.1407, allocations: 8 kB / 409.3 MB, free: 4.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1409, allocations: 342.8 kB / 409.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.1421, allocations: 0.4891 MB / 410.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.1433, allocations: 0.5528 MB / 410.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.1444, allocations: 446 kB / 411.1 MB, free: 2.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1444, allocations: 0 / 411.1 MB, free: 2.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002561/0.147, allocations: 1.057 MB / 412.1 MB, free: 1.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.147, allocations: 4 kB / 412.1 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.147, allocations: 4 kB / 412.1 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.147, allocations: 8.031 kB / 412.2 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008653/0.1479, allocations: 179.8 kB / 412.3 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1479, allocations: 8 kB / 412.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005703/0.1485, allocations: 107.9 kB / 412.4 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/0.1486, allocations: 19.95 kB / 412.5 MB, free: 0.8242 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.0002138/0.1488, allocations: 161.5 kB / 412.6 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/0.1489, allocations: 27.62 kB / 412.6 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.149, allocations: 47.31 kB / 412.7 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.149, allocations: 4 kB / 412.7 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1491, allocations: 4 kB / 412.7 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1491, allocations: 3.984 kB / 412.7 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003789/0.1529, allocations: 1.995 MB / 414.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.1529, allocations: 8 kB / 414.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006048/0.1535, allocations: 167.8 kB / 414.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-05/0.1535, allocations: 12 kB / 414.9 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.1536, allocations: 24 kB / 414.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.459e-05/0.1536, allocations: 23.92 kB / 414.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/0.1536, allocations: 8 kB / 414.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002538/0.1561, allocations: 1.334 MB / 416.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.1563, allocations: 144.8 kB / 416.4 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.203e-05/0.1564, allocations: 23.98 kB / 416.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004795/0.1569, allocations: 91.92 kB / 416.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.157, allocations: 95.66 kB / 416.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.1571, allocations: 24 kB / 416.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.1573, allocations: 144.3 kB / 416.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.1573, allocations: 0 / 416.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004743/0.1577, allocations: 100 kB / 416.9 MB, free: 12.08 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.0001556/0.1579, allocations: 130.9 kB / 417 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.16, allocations: 0.9157 MB / 417.9 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.16, allocations: 4 kB / 417.9 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.1609, allocations: 361.7 kB / 418.3 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.1615, allocations: 55.97 kB / 418.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.1635, allocations: 1.164 MB / 419.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.1639, allocations: 0.7882 MB / 420.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004643/0.1644, allocations: 75.25 kB / 420.4 MB, free: 8.438 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.1646, allocations: 27.44 kB / 420.4 MB, free: 8.414 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1646, allocations: 4 kB / 420.4 MB, free: 8.41 MB / 318.1 MB Notification: Performance of Templates: time 0.008367/0.1729, allocations: 5.021 MB / 425.4 MB, free: 3.383 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