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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 181.6 kB / 23.71 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB " [Timeout remaining time 178] 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=8007,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=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 51.92 kB / 370.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2933, allocations: 52.18 MB / 423.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003781/0.2971, allocations: 2.392 MB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2985, allocations: 0.8105 MB / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.2987, allocations: 11.88 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003009/0.299, allocations: 47.58 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.2992, allocations: 63.55 kB / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.2997, allocations: 179.6 kB / 426.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.3001, allocations: 387.5 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.3003, allocations: 68.36 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.3005, allocations: 167.5 kB / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.3008, allocations: 187.2 kB / 427.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.236e-05/0.3008, allocations: 32 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.961e-05/0.3009, allocations: 36 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.301, allocations: 99.72 kB / 427.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.3012, allocations: 147.2 kB / 427.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.3016, allocations: 335.8 kB / 428 MB, free: 9.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3016, allocations: 3.938 kB / 428 MB, free: 9.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3016, allocations: 0 / 428 MB, free: 9.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3016, allocations: 0 / 428 MB, free: 9.715 MB / 334.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.001238/0.3028, allocations: 0.5483 MB / 428.6 MB, free: 9.137 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3029, allocations: 8.031 kB / 428.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.3029, allocations: 40.75 kB / 428.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.3034, allocations: 234.4 kB / 428.9 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002112/0.3036, allocations: 130.3 kB / 429 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.76e-05/0.3036, allocations: 36.36 kB / 429 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.3049, allocations: 0.5584 MB / 429.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3049, allocations: 4 kB / 429.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.305, allocations: 8 kB / 429.6 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.305, allocations: 8 kB / 429.6 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.3064, allocations: 0.5151 MB / 430.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.308, allocations: 0.9375 MB / 431.1 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.3097, allocations: 482.5 kB / 431.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.3103, allocations: 243.3 kB / 431.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.586e-05/0.3104, allocations: 11.92 kB / 431.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.3104, allocations: 38.56 kB / 431.8 MB, free: 5.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.924e-06/0.3104, allocations: 0 / 431.8 MB, free: 5.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04194/0.3523, allocations: 5.736 MB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.3525, allocations: 152.9 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.3527, allocations: 196.3 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.799e-05/0.3528, allocations: 41.7 kB / 437.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3529, allocations: 141.7 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.3531, allocations: 202.4 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/0.3534, allocations: 114.6 kB / 438.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3536, allocations: 342.8 kB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.3553, allocations: 0.6187 MB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/0.3572, allocations: 0.7964 MB / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003288/0.3605, allocations: 1.247 MB / 441.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.3605, allocations: 4 kB / 441.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003819/0.3643, allocations: 1.398 MB / 442.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.3643, allocations: 8 kB / 442.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.3644, allocations: 8 kB / 442.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.3644, allocations: 8.188 kB / 442.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.3658, allocations: 215.6 kB / 443 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.998e-05/0.3658, allocations: 11.98 kB / 443 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.3668, allocations: 103.8 kB / 443.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.394e-05/0.3669, allocations: 24 kB / 443.1 MB, free: 10.14 MB / 350.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.0004141/0.3673, allocations: 185.6 kB / 443.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003407/0.3677, allocations: 161.3 kB / 443.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.3679, allocations: 59.77 kB / 443.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.3679, allocations: 8 kB / 443.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.3679, allocations: 4 kB / 443.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.3679, allocations: 3.984 kB / 443.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005096/0.373, allocations: 2.136 MB / 445.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/0.373, allocations: 16.03 kB / 445.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007689/0.3738, allocations: 183.7 kB / 445.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/0.3738, allocations: 12 kB / 445.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.3738, allocations: 24 kB / 445.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.077e-05/0.3739, allocations: 23.92 kB / 445.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.3739, allocations: 11.94 kB / 446 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003382/0.3773, allocations: 1.565 MB / 447.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.3775, allocations: 87.64 kB / 447.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.138e-05/0.3775, allocations: 27.98 kB / 447.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006131/0.3782, allocations: 83.98 kB / 447.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.3784, allocations: 95.64 kB / 447.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.801e-05/0.3784, allocations: 28 kB / 447.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.3786, allocations: 145.2 kB / 448 MB, free: 4.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3786, allocations: 0 / 448 MB, free: 4.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006753/0.3792, allocations: 116 kB / 448.1 MB, free: 4.848 MB / 350.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.0001854/0.3794, allocations: 143.3 kB / 448.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0029/0.3823, allocations: 1.023 MB / 449.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.3823, allocations: 12.06 kB / 449.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3834, allocations: 333.8 kB / 449.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008812/0.3842, allocations: 135.6 kB / 449.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.3867, allocations: 1.182 MB / 450.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.3872, allocations: 0.8167 MB / 451.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000457/0.3876, allocations: 95.31 kB / 451.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.3879, allocations: 35.44 kB / 451.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3879, allocations: 0 / 451.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of Templates: time 0.01509/0.403, allocations: 8.873 MB / 460.7 MB, free: 8.027 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.085790497250855]