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.001559/0.001559, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001756/0.001756, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.484/1.484, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.00147/0.00147, allocations: 51.92 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2738, allocations: 52.18 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003772/0.2775, allocations: 2.295 MB / 425.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.279, allocations: 0.7833 MB / 426.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.2792, allocations: 11.94 kB / 426.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.2795, allocations: 59.5 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002316/0.2797, allocations: 67.48 kB / 426.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005727/0.2803, allocations: 211.1 kB / 426.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004468/0.2807, allocations: 391.5 kB / 426.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.2809, allocations: 71.86 kB / 426.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.2812, allocations: 171.4 kB / 427.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.2815, allocations: 167.2 kB / 427.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.394e-05/0.2815, allocations: 36 kB / 427.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.275e-05/0.2816, allocations: 32 kB / 427.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.2817, allocations: 119.6 kB / 427.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.2819, allocations: 135.3 kB / 427.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.2823, allocations: 380.6 kB / 427.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2823, allocations: 0 / 427.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2823, allocations: 3.938 kB / 427.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.2823, allocations: 4 kB / 427.9 MB, free: 9.539 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.001319/0.2837, allocations: 0.6102 MB / 428.6 MB, free: 8.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2837, allocations: 8.031 kB / 428.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.517e-05/0.2838, allocations: 48.7 kB / 428.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.2843, allocations: 249.4 kB / 428.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003621/0.2846, allocations: 351.9 kB / 429.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.945e-05/0.2847, allocations: 28.31 kB / 429.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.286, allocations: 0.5739 MB / 429.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.286, allocations: 3.953 kB / 429.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/0.2861, allocations: 16 kB / 429.8 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2861, allocations: 8 kB / 429.8 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.2876, allocations: 0.5074 MB / 430.3 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.2891, allocations: 0.8638 MB / 431.2 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.2906, allocations: 469.3 kB / 431.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006692/0.2913, allocations: 239.4 kB / 431.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-05/0.2913, allocations: 8 kB / 431.9 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.2913, allocations: 50.44 kB / 432 MB, free: 5.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.863e-06/0.2913, allocations: 0 / 432 MB, free: 5.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03877/0.3301, allocations: 5.788 MB / 437.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.3303, allocations: 145 kB / 437.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004089/0.3307, allocations: 269.8 kB / 438.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.886e-05/0.3308, allocations: 41.7 kB / 438.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.3309, allocations: 149.8 kB / 438.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/0.3312, allocations: 206.6 kB / 438.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/0.3315, allocations: 110.6 kB / 438.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002271/0.3317, allocations: 350.7 kB / 439 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.3336, allocations: 0.6227 MB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002036/0.3356, allocations: 0.812 MB / 440.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.339, allocations: 1.256 MB / 441.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.339, allocations: 0 / 441.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.004099/0.3431, allocations: 1.411 MB / 443.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.3431, allocations: 8 kB / 443.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.3431, allocations: 11.98 kB / 443.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.469e-05/0.3432, allocations: 8.156 kB / 443.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.3446, allocations: 207.7 kB / 443.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.473e-05/0.3446, allocations: 15.92 kB / 443.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.3456, allocations: 103.8 kB / 443.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/0.3457, allocations: 27.98 kB / 443.5 MB, free: 9.527 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0004017/0.3461, allocations: 193.6 kB / 443.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.3465, allocations: 161.4 kB / 443.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.3466, allocations: 71.61 kB / 443.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.3467, allocations: 8 kB / 443.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.3467, allocations: 4 kB / 443.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.3467, allocations: 7.922 kB / 443.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/0.3519, allocations: 1.926 MB / 445.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.3519, allocations: 8 kB / 445.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.3527, allocations: 195.8 kB / 446 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.985e-05/0.3527, allocations: 16 kB / 446 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.597e-05/0.3528, allocations: 24 kB / 446.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.967e-05/0.3528, allocations: 23.86 kB / 446.1 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.721e-05/0.3528, allocations: 15.94 kB / 446.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.3565, allocations: 1.589 MB / 447.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002934/0.3568, allocations: 103.6 kB / 447.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.274e-05/0.3568, allocations: 27.98 kB / 447.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006665/0.3575, allocations: 79.86 kB / 447.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/0.3577, allocations: 95.64 kB / 448 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-05/0.3578, allocations: 36.05 kB / 448 MB, free: 4.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.358, allocations: 193.2 kB / 448.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.358, allocations: 0 / 448.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007125/0.3587, allocations: 124 kB / 448.3 MB, free: 4.32 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001935/0.3589, allocations: 138.9 kB / 448.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.362, allocations: 1.034 MB / 449.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.004e-06/0.362, allocations: 4 kB / 449.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.3631, allocations: 343.2 kB / 449.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009844/0.3641, allocations: 140.6 kB / 450 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.3668, allocations: 1.257 MB / 451.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.3671, allocations: 228.7 kB / 451.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005039/0.3676, allocations: 96.08 kB / 451.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003057/0.3679, allocations: 47.42 kB / 451.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3679, allocations: 0 / 451.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of Templates: time 0.01689/0.3848, allocations: 9.46 MB / 461.1 MB, free: 7.48 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: 5.046929024159908]