Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001368, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001296/0.001296, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 50.83 kB / 301.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1118, allocations: 49.44 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004514/0.1163, allocations: 2.333 MB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.1181, allocations: 0.8065 MB / 353.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.1184, allocations: 7.938 kB / 353.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.1188, allocations: 55.52 kB / 353.9 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.1191, allocations: 51.56 kB / 354 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00071/0.1199, allocations: 191.5 kB / 354.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004846/0.1204, allocations: 371.6 kB / 354.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002489/0.1206, allocations: 103.8 kB / 354.6 MB, free: 500 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003158/0.1209, allocations: 163.4 kB / 354.8 MB, free: 336 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.1212, allocations: 179.3 kB / 355 MB, free: 156 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.068e-05/0.1213, allocations: 32 kB / 355 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.425e-05/0.1214, allocations: 40 kB / 355 MB, free: 84 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.1216, allocations: 99.8 kB / 355.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1218, allocations: 147.2 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003879/0.1222, allocations: 323.2 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1222, allocations: 0 / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1222, allocations: 0 / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1222, allocations: 0 / 355.6 MB, free: 15.52 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001397/0.1236, allocations: 0.62 MB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.1237, allocations: 11.89 kB / 356.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.1238, allocations: 48.5 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.1241, allocations: 268.4 kB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002079/0.1244, allocations: 138.3 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.832e-05/0.1244, allocations: 36.28 kB / 356.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1257, allocations: 0.5661 MB / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.1257, allocations: 0 / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/0.1258, allocations: 19.92 kB / 357.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1258, allocations: 8 kB / 357.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.1273, allocations: 0.5079 MB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.1289, allocations: 0.9904 MB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.1305, allocations: 0.5179 MB / 359.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006357/0.1312, allocations: 255.4 kB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.1313, allocations: 12.14 kB / 359.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1313, allocations: 42.56 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.645e-06/0.1313, allocations: 4 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.0401/0.1714, allocations: 5.71 MB / 365.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001729/0.1716, allocations: 152.9 kB / 365.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.1719, allocations: 204.2 kB / 365.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.172, allocations: 33.7 kB / 365.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1722, allocations: 145.5 kB / 365.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.1724, allocations: 193.3 kB / 366 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/0.1727, allocations: 102.7 kB / 366.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1729, allocations: 350.8 kB / 366.5 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.1746, allocations: 0.6149 MB / 367.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.1765, allocations: 0.7925 MB / 367.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/0.1798, allocations: 1.251 MB / 369.1 MB, free: 1.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.054e-06/0.1798, allocations: 0 / 369.1 MB, free: 1.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003808/0.1836, allocations: 1.394 MB / 370.5 MB, free: 64 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.1837, allocations: 15.98 kB / 370.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.1837, allocations: 4 kB / 370.5 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.1837, allocations: 8 kB / 370.6 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2146/0.3983, allocations: 210 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.88e-05/0.3984, allocations: 11.56 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.3995, allocations: 99.89 kB / 370.9 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.3996, allocations: 30.53 kB / 370.9 MB, free: 26.38 MB / 302.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.0003666/0.4, allocations: 183.2 kB / 371.1 MB, free: 26.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004066/0.4004, allocations: 149.8 kB / 371.2 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.4006, allocations: 67.06 kB / 371.3 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4006, allocations: 8.469 kB / 371.3 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4006, allocations: 2.312 kB / 371.3 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.4007, allocations: 5.922 kB / 371.3 MB, free: 26.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005053/0.4057, allocations: 2.176 MB / 373.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/0.4058, allocations: 10.89 kB / 373.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008203/0.4066, allocations: 186.1 kB / 373.7 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.085e-05/0.4066, allocations: 13.06 kB / 373.7 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.4067, allocations: 27.17 kB / 373.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.56e-05/0.4067, allocations: 19.55 kB / 373.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.326e-05/0.4068, allocations: 15.41 kB / 373.8 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.4099, allocations: 1.558 MB / 375.3 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.4102, allocations: 163.6 kB / 375.5 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.067e-05/0.4102, allocations: 29.41 kB / 375.5 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.4108, allocations: 81.92 kB / 375.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.411, allocations: 94.38 kB / 375.7 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.912e-05/0.4111, allocations: 33.03 kB / 375.7 MB, free: 24.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.4112, allocations: 140 kB / 375.8 MB, free: 24.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4112, allocations: 1.031 kB / 375.8 MB, free: 24.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007374/0.412, allocations: 121.5 kB / 376 MB, free: 24.26 MB / 302.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.0001847/0.4122, allocations: 142.2 kB / 376.1 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002913/0.4151, allocations: 1.152 MB / 377.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.4151, allocations: 2.375 kB / 377.3 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.4162, allocations: 344.4 kB / 377.6 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009153/0.4171, allocations: 130.6 kB / 377.7 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.4196, allocations: 1.211 MB / 378.9 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.4199, allocations: 0.8146 MB / 379.7 MB, free: 21.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.4203, allocations: 44.7 kB / 379.8 MB, free: 21.96 MB / 302.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4203, allocations: 0 / 379.8 MB, free: 21.96 MB / 302.1 MB Notification: Performance of Templates: time 0.01331/0.4336, allocations: 7.151 MB / 386.9 MB, free: 19.36 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches