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.001089/0.001089, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001018/0.001018, allocations: 148.6 kB / 24.89 MB, free: 8.742 MB / 18.57 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 0.9398/0.9398, allocations: 173.4 MB / 201.5 MB, free: 8.738 MB / 186.7 MB " [Timeout remaining time 179] 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 9.42e-07/9.42e-07, allocations: 0 / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.181e-05/1.275e-05, allocations: 10.05 kB / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.0026/0.002613, allocations: 2.372 MB / 270.8 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.003647, allocations: 0.8296 MB / 271.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.00377, allocations: 11.94 kB / 271.7 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.003967, allocations: 59.39 kB / 271.7 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.004121, allocations: 71.47 kB / 271.8 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.004498, allocations: 199.4 kB / 272 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000301/0.004799, allocations: 403.4 kB / 272.4 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.004915, allocations: 74.42 kB / 272.4 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.005123, allocations: 231.5 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.005279, allocations: 151.5 kB / 272.8 MB, free: 1.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.005324, allocations: 36 kB / 272.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.138e-05/0.005355, allocations: 32 kB / 272.9 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.971e-05/0.005435, allocations: 115.6 kB / 273 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.235e-05/0.005507, allocations: 103.7 kB / 273.1 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.005756, allocations: 286.9 kB / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.005758, allocations: 4 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.91e-07/0.005758, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.005762, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 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.0006116/0.006373, allocations: 0.5621 MB / 273.9 MB, free: 500 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.006402, allocations: 12.03 kB / 274 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.383e-05/0.006465, allocations: 68.83 kB / 274 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/0.006698, allocations: 221.1 kB / 274.2 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.006877, allocations: 347.9 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.006918, allocations: 32.38 kB / 274.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.007345, allocations: 423.6 kB / 275 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.007356, allocations: 192 / 275 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.007379, allocations: 16.12 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.007386, allocations: 8 kB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.007639, allocations: 178.6 kB / 275.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007078/0.008347, allocations: 0.647 MB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.008771, allocations: 321.6 kB / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.008882, allocations: 103.5 kB / 276.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.008913, allocations: 12 kB / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.00894, allocations: 46.5 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.593e-06/0.008942, allocations: 0 / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005477/0.01442, allocations: 2.247 MB / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.01448, allocations: 153.3 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.01462, allocations: 228.9 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.245e-05/0.01467, allocations: 33.7 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.01472, allocations: 145.7 kB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.01483, allocations: 194.3 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.01498, allocations: 102.2 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.01507, allocations: 342.7 kB / 279.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.01531, allocations: 212.1 kB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.01558, allocations: 282.7 kB / 280.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004805/0.01606, allocations: 499 kB / 280.7 MB, free: 9.344 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.01606, allocations: 3.938 kB / 280.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006023/0.01666, allocations: 0.5363 MB / 281.3 MB, free: 8.793 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.01668, allocations: 7.938 kB / 281.3 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.01668, allocations: 4.047 kB / 281.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.0167, allocations: 11.97 kB / 281.3 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004949/0.01719, allocations: 156 kB / 281.5 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.0172, allocations: 15.92 kB / 281.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004485/0.01765, allocations: 71.86 kB / 281.5 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.045e-05/0.01771, allocations: 16 kB / 281.6 MB, free: 8.516 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0002062/0.01792, allocations: 152.5 kB / 281.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002396/0.01816, allocations: 113.6 kB / 281.8 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.01826, allocations: 67.61 kB / 281.9 MB, free: 8.172 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.01827, allocations: 8 kB / 281.9 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.01827, allocations: 4 kB / 281.9 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.01828, allocations: 7.984 kB / 281.9 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.02046, allocations: 1.201 MB / 283.1 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/0.02048, allocations: 8 kB / 283.1 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/0.021, allocations: 171.7 kB / 283.3 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/0.02102, allocations: 15.94 kB / 283.3 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.143e-05/0.02106, allocations: 28 kB / 283.3 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.721e-05/0.02107, allocations: 23.92 kB / 283.3 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/0.02109, allocations: 15.94 kB / 283.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008712/0.02196, allocations: 0.8432 MB / 284.2 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.02212, allocations: 75.66 kB / 284.3 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.02218, allocations: 23.98 kB / 284.3 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.02253, allocations: 59.95 kB / 284.4 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.02264, allocations: 87.64 kB / 284.4 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.02266, allocations: 27.98 kB / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.888e-05/0.02272, allocations: 74.78 kB / 284.5 MB, free: 5.191 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02272, allocations: 4.031 kB / 284.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003281/0.02305, allocations: 120 kB / 284.7 MB, free: 5.07 MB / 266.7 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.0001066/0.02316, allocations: 120.1 kB / 284.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005094/0.02367, allocations: 473.4 kB / 285.2 MB, free: 4.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.02367, allocations: 8.062 kB / 285.3 MB, free: 4.473 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.02383, allocations: 147.1 kB / 285.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.02432, allocations: 164.9 kB / 285.6 MB, free: 4.176 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.02557, allocations: 1.04 MB / 286.6 MB, free: 2.965 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.275e-05/0.02567, allocations: 138.8 kB / 286.7 MB, free: 2.812 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002373/0.0259, allocations: 83.22 kB / 286.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.02619, allocations: 115.4 kB / 286.9 MB, free: 2.613 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.02619, allocations: 0 / 286.9 MB, free: 2.613 MB / 266.7 MB Notification: Performance of Templates: time 0.1215/0.1477, allocations: 9.602 MB / 296.5 MB, free: 28.53 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.847618625033647]