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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.00161/0.00161, allocations: 189.4 kB / 23.72 MB, free: 4.68 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.426/1.426, allocations: 225.6 MB / 252.5 MB, free: 13 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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 47.91 kB / 370.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2598, allocations: 52.17 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.0041/0.2639, allocations: 2.43 MB / 425.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.2655, allocations: 0.8339 MB / 426.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.2657, allocations: 19.81 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.266, allocations: 51.58 kB / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002253/0.2663, allocations: 71.48 kB / 426.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005806/0.2668, allocations: 199.5 kB / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000454/0.2673, allocations: 403.4 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.2675, allocations: 75.81 kB / 427.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.2677, allocations: 163.5 kB / 427.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.268, allocations: 195.2 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.517e-05/0.2681, allocations: 36 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.825e-05/0.2681, allocations: 32 kB / 427.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2682, allocations: 111.6 kB / 427.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.2684, allocations: 159.1 kB / 427.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004681/0.2689, allocations: 375.7 kB / 428.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2689, allocations: 0 / 428.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2689, allocations: 0 / 428.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2689, allocations: 0 / 428.2 MB, free: 9.559 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001342/0.2702, allocations: 0.6063 MB / 428.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2703, allocations: 8.031 kB / 428.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.861e-05/0.2704, allocations: 52.7 kB / 428.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.2709, allocations: 249.4 kB / 429.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.2711, allocations: 134.3 kB / 429.2 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.651e-05/0.2711, allocations: 28.38 kB / 429.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.2724, allocations: 0.57 MB / 429.8 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.2725, allocations: 3.938 kB / 429.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.2725, allocations: 12 kB / 429.9 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.2725, allocations: 8 kB / 429.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.274, allocations: 0.5112 MB / 430.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.2756, allocations: 0.9685 MB / 431.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.2774, allocations: 482.5 kB / 431.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006674/0.278, allocations: 235.4 kB / 432 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.707e-05/0.2781, allocations: 7.984 kB / 432.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.2781, allocations: 42.56 kB / 432.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.114e-06/0.2781, allocations: 0 / 432.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0421/0.3202, allocations: 5.77 MB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/0.3204, allocations: 152.9 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.3208, allocations: 261.8 kB / 438.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.18e-05/0.3209, allocations: 41.64 kB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.321, allocations: 145.8 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.3213, allocations: 206.3 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000319/0.3216, allocations: 118.6 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3218, allocations: 346.8 kB / 439.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.3235, allocations: 0.611 MB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.3254, allocations: 0.7963 MB / 440.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.3288, allocations: 1.259 MB / 441.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3288, allocations: 0 / 441.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003873/0.3326, allocations: 1.398 MB / 443.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.3327, allocations: 8 kB / 443.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3327, allocations: 8 kB / 443.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/0.3327, allocations: 8 kB / 443.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.3341, allocations: 211.6 kB / 443.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.3341, allocations: 11.94 kB / 443.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3351, allocations: 107.8 kB / 443.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.749e-05/0.3352, allocations: 27.98 kB / 443.5 MB, free: 9.742 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.0003625/0.3356, allocations: 186 kB / 443.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/0.3359, allocations: 169.6 kB / 443.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.3361, allocations: 67.61 kB / 444 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3361, allocations: 12 kB / 444 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.3361, allocations: 0 / 444 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.3362, allocations: 3.984 kB / 444 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005258/0.3414, allocations: 2.159 MB / 446.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.3414, allocations: 8 kB / 446.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008011/0.3422, allocations: 180.3 kB / 446.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-05/0.3422, allocations: 20 kB / 446.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-05/0.3423, allocations: 27.98 kB / 446.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-05/0.3423, allocations: 15.94 kB / 446.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-05/0.3423, allocations: 15.94 kB / 446.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.3459, allocations: 1.565 MB / 448 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.3461, allocations: 103.6 kB / 448.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.262e-05/0.3462, allocations: 27.98 kB / 448.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006316/0.3468, allocations: 75.92 kB / 448.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.347, allocations: 95.7 kB / 448.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.3471, allocations: 32 kB / 448.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.3473, allocations: 193.1 kB / 448.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3473, allocations: 0 / 448.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007051/0.348, allocations: 124 kB / 448.6 MB, free: 4.344 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.0001856/0.3482, allocations: 142.9 kB / 448.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003044/0.3512, allocations: 1.029 MB / 449.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.3513, allocations: 4 kB / 449.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.3523, allocations: 327.2 kB / 450.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009765/0.3533, allocations: 152.5 kB / 450.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.356, allocations: 1.233 MB / 451.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.3565, allocations: 0.8323 MB / 452.3 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000504/0.357, allocations: 96.09 kB / 452.4 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.3573, allocations: 47.44 kB / 452.4 MB, free: 312 kB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3573, allocations: 0 / 452.4 MB, free: 312 kB / 350.1 MB Notification: Performance of Templates: time 0.01637/0.3736, allocations: 9.087 MB / 461.5 MB, free: 7.234 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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: 4.909740502946079]