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.001455/0.001456, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001711/0.001711, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.499/1.499, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 41.81 kB / 300.6 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1084, allocations: 49.44 MB / 350 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.006385/0.1149, allocations: 2.335 MB / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.1172, allocations: 0.8065 MB / 353.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003511/0.1176, allocations: 8 kB / 353.2 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004108/0.1181, allocations: 51.58 kB / 353.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000397/0.1185, allocations: 59.48 kB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000852/0.1194, allocations: 178.9 kB / 353.5 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006839/0.1201, allocations: 371.6 kB / 353.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.1204, allocations: 107.8 kB / 353.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004314/0.1209, allocations: 167.4 kB / 354.1 MB, free: 364 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.1212, allocations: 179.3 kB / 354.3 MB, free: 184 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.712e-05/0.1213, allocations: 32 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.495e-05/0.1214, allocations: 39.94 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1216, allocations: 95.72 kB / 354.4 MB, free: 16 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.1218, allocations: 147.4 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.1223, allocations: 323.1 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1224, allocations: 3.938 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.1224, allocations: 4 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.1224, allocations: 0 / 354.9 MB, free: 15.55 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.001502/0.1239, allocations: 0.6239 MB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.124, allocations: 11.89 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.1241, allocations: 40.56 kB / 355.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.1245, allocations: 272.3 kB / 355.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002656/0.1247, allocations: 138.3 kB / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.931e-05/0.1248, allocations: 32.28 kB / 356 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.1261, allocations: 0.5661 MB / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.1261, allocations: 0 / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.206e-05/0.1261, allocations: 16 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1262, allocations: 8 kB / 356.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.1276, allocations: 0.504 MB / 357.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.1292, allocations: 1.01 MB / 358.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.1309, allocations: 0.5057 MB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006552/0.1316, allocations: 255.4 kB / 358.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.1317, allocations: 15.94 kB / 358.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.1317, allocations: 38.55 kB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.1317, allocations: 0 / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03829/0.17, allocations: 5.723 MB / 364.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.1702, allocations: 144.9 kB / 364.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.1704, allocations: 200.2 kB / 365 MB, free: 5.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.1706, allocations: 37.7 kB / 365 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1707, allocations: 149.9 kB / 365.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.1709, allocations: 193.3 kB / 365.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002869/0.1712, allocations: 106.7 kB / 365.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.1715, allocations: 338.8 kB / 365.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.1731, allocations: 0.6226 MB / 366.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.1749, allocations: 0.8002 MB / 367.2 MB, free: 2.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/0.1782, allocations: 1.247 MB / 368.5 MB, free: 1.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.1782, allocations: 0 / 368.5 MB, free: 1.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00392/0.1822, allocations: 1.401 MB / 369.9 MB, free: 76 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.1822, allocations: 8 kB / 369.9 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.1822, allocations: 4 kB / 369.9 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.1823, allocations: 8 kB / 369.9 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1887/0.371, allocations: 205.6 kB / 370.1 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.454e-05/0.3711, allocations: 15.12 kB / 370.1 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000955/0.3721, allocations: 96.33 kB / 370.2 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.073e-05/0.3721, allocations: 28.89 kB / 370.2 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.0002906/0.3724, allocations: 184.1 kB / 370.4 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/0.3728, allocations: 154 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.3729, allocations: 62.31 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.3729, allocations: 12.42 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.373, allocations: 2.25 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.373, allocations: 5.297 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/0.3775, allocations: 2.171 MB / 372.8 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.3775, allocations: 14.41 kB / 372.8 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.3783, allocations: 182.5 kB / 373 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-05/0.3783, allocations: 14.25 kB / 373 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-05/0.3784, allocations: 28.11 kB / 373 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.831e-05/0.3784, allocations: 20.39 kB / 373.1 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.328e-05/0.3784, allocations: 17.06 kB / 373.1 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002949/0.3814, allocations: 1.558 MB / 374.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.3816, allocations: 163.1 kB / 374.8 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.241e-05/0.3816, allocations: 27.33 kB / 374.8 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/0.3822, allocations: 72.05 kB / 374.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.3824, allocations: 99.03 kB / 375 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.6e-05/0.3825, allocations: 29.41 kB / 375 MB, free: 24.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.3826, allocations: 142.9 kB / 375.2 MB, free: 24.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3826, allocations: 0 / 375.2 MB, free: 24.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006785/0.3833, allocations: 121.8 kB / 375.3 MB, free: 24.24 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.0001559/0.3834, allocations: 150.7 kB / 375.4 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.3862, allocations: 1.152 MB / 376.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.3862, allocations: 1.219 kB / 376.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3872, allocations: 340.6 kB / 376.9 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008887/0.3881, allocations: 135.5 kB / 377 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.3903, allocations: 1.178 MB / 378.2 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.3906, allocations: 0.814 MB / 379 MB, free: 21.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005766/0.3912, allocations: 95.89 kB / 379.1 MB, free: 21.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002541/0.3914, allocations: 38.95 kB / 379.2 MB, free: 21.94 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3914, allocations: 4 kB / 379.2 MB, free: 21.94 MB / 302.1 MB Notification: Performance of Templates: time 0.0139/0.4053, allocations: 8.175 MB / 387.3 MB, free: 19.01 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/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