Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 110.1 kB / 17.28 MB, free: 6.219 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.001223/0.001223, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.417/1.417, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001701, allocations: 51.52 kB / 300.8 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1186, allocations: 49.44 MB / 350.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004214/0.1229, allocations: 2.412 MB / 352.6 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1245, allocations: 0.83 MB / 353.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.1248, allocations: 7.938 kB / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003249/0.1252, allocations: 43.7 kB / 353.5 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.1255, allocations: 51.69 kB / 353.6 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000654/0.1262, allocations: 178.1 kB / 353.7 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005224/0.1267, allocations: 399.5 kB / 354.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.1269, allocations: 99.48 kB / 354.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.1272, allocations: 159.5 kB / 354.4 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002941/0.1275, allocations: 191.2 kB / 354.6 MB, free: 400 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.1276, allocations: 32 kB / 354.6 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.053e-05/0.1277, allocations: 36 kB / 354.6 MB, free: 332 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.1278, allocations: 107.7 kB / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.128, allocations: 171 kB / 354.9 MB, free: 52 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.1284, allocations: 263.8 kB / 355.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1284, allocations: 0 / 355.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1284, allocations: 0 / 355.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.1284, allocations: 0 / 355.2 MB, free: 15.79 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001347/0.1297, allocations: 0.6743 MB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1298, allocations: 15.83 kB / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.1299, allocations: 48.41 kB / 355.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.1303, allocations: 299.2 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.1305, allocations: 138.2 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.191e-05/0.1306, allocations: 32.36 kB / 356.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1317, allocations: 0.5701 MB / 356.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.1318, allocations: 3.906 kB / 356.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.1318, allocations: 12 kB / 357 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1318, allocations: 8 kB / 357 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.1332, allocations: 0.5113 MB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.1347, allocations: 1.018 MB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.1363, allocations: 0.5102 MB / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005866/0.1369, allocations: 263.4 kB / 359.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.1369, allocations: 8 kB / 359.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.137, allocations: 42.5 kB / 359.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.294e-06/0.137, allocations: 0 / 359.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03842/0.1754, allocations: 5.751 MB / 365.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.1756, allocations: 153 kB / 365.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003866/0.176, allocations: 258.5 kB / 365.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.1761, allocations: 37.7 kB / 365.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1763, allocations: 149.6 kB / 365.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002546/0.1765, allocations: 193.3 kB / 365.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/0.1768, allocations: 114.6 kB / 365.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.177, allocations: 342.8 kB / 366.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.1785, allocations: 0.6188 MB / 366.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.1802, allocations: 0.8041 MB / 367.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/0.1831, allocations: 1.244 MB / 368.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.1831, allocations: 4 kB / 368.9 MB, free: 1.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003387/0.1865, allocations: 1.405 MB / 370.4 MB, free: 108 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.1866, allocations: 8 kB / 370.4 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.1866, allocations: 4 kB / 370.4 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.1866, allocations: 12.16 kB / 370.4 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1581/0.3448, allocations: 206 kB / 370.6 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.954e-05/0.3448, allocations: 14.03 kB / 370.6 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.3459, allocations: 98.88 kB / 370.7 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.945e-05/0.346, allocations: 28.45 kB / 370.7 MB, free: 26.41 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.0003627/0.3464, allocations: 189.4 kB / 370.9 MB, free: 26.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003936/0.3468, allocations: 167.1 kB / 371.1 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.347, allocations: 66.73 kB / 371.1 MB, free: 26.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.347, allocations: 9.125 kB / 371.1 MB, free: 26.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.347, allocations: 1.438 kB / 371.1 MB, free: 26.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3471, allocations: 6.25 kB / 371.1 MB, free: 26.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004821/0.3519, allocations: 2.182 MB / 373.3 MB, free: 25.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/0.3519, allocations: 14.28 kB / 373.3 MB, free: 25.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008196/0.3528, allocations: 181.6 kB / 373.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.873e-05/0.3528, allocations: 13.66 kB / 373.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.3529, allocations: 26.56 kB / 373.6 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.74e-05/0.3529, allocations: 19.84 kB / 373.6 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/0.3529, allocations: 16.44 kB / 373.6 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.3559, allocations: 1.564 MB / 375.2 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002405/0.3561, allocations: 180.9 kB / 375.3 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.594e-05/0.3562, allocations: 30.62 kB / 375.4 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005779/0.3568, allocations: 77.61 kB / 375.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.357, allocations: 95.17 kB / 375.5 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.923e-05/0.3571, allocations: 28.75 kB / 375.6 MB, free: 24.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001974/0.3573, allocations: 189 kB / 375.7 MB, free: 24.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3573, allocations: 0 / 375.7 MB, free: 24.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007378/0.3581, allocations: 123.7 kB / 375.9 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.0001563/0.3582, allocations: 148.6 kB / 376 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002785/0.361, allocations: 1.151 MB / 377.2 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.361, allocations: 2.156 kB / 377.2 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3621, allocations: 340.4 kB / 377.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009834/0.3631, allocations: 153.1 kB / 377.6 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.3655, allocations: 1.433 MB / 379.1 MB, free: 22.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.3658, allocations: 0.8339 MB / 379.9 MB, free: 21.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003482/0.3662, allocations: 46.36 kB / 380 MB, free: 21.76 MB / 302.1 MB Notification: Performance of SimCode: time 1.873e-06/0.3662, allocations: 0 / 380 MB, free: 21.76 MB / 302.1 MB Notification: Performance of Templates: time 0.013/0.3792, allocations: 7.338 MB / 387.3 MB, free: 19.06 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches