Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009765/0.0009765, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9075/0.9075, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 272.9 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.374e-05/2.571e-05, allocations: 2.312 kB / 272.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002797/0.002822, allocations: 2.407 MB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.003977, allocations: 0.8531 MB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.004109, allocations: 11.94 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.00437, allocations: 55.5 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.004556, allocations: 75.42 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.004971, allocations: 199.4 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003244/0.005295, allocations: 403.4 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.005447, allocations: 63.86 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.005751, allocations: 235.5 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.005923, allocations: 151.6 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.005967, allocations: 36 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.773e-05/0.006005, allocations: 32 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.092e-05/0.006096, allocations: 119.6 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.361e-05/0.006179, allocations: 111.6 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.006454, allocations: 282.9 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.006458, allocations: 0 / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.006459, allocations: 0 / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.006465, allocations: 0 / 277.9 MB, free: 12.54 MB / 266.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.001056/0.007521, allocations: 0.6946 MB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.007555, allocations: 8.031 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.462e-05/0.00765, allocations: 76.7 kB / 278.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.007934, allocations: 255.9 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.008121, allocations: 347.9 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.008165, allocations: 28.38 kB / 279.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006356/0.008801, allocations: 467.4 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.008817, allocations: 12.05 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.008848, allocations: 20.11 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.008858, allocations: 8 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003811/0.00924, allocations: 231.8 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009229/0.01016, allocations: 0.9603 MB / 281 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.01076, allocations: 340.6 kB / 281.4 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.01094, allocations: 146.8 kB / 281.5 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.01098, allocations: 8 kB / 281.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.011, allocations: 49.31 kB / 281.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/0.01101, allocations: 0 / 281.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006894/0.0179, allocations: 2.675 MB / 284.2 MB, free: 5.938 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.01797, allocations: 149 kB / 284.4 MB, free: 5.762 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.01816, allocations: 296.3 kB / 284.7 MB, free: 5.457 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.276e-05/0.01822, allocations: 37.7 kB / 284.7 MB, free: 5.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.671e-05/0.0183, allocations: 200.4 kB / 284.9 MB, free: 5.211 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.01842, allocations: 198.3 kB / 285.1 MB, free: 5.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.0186, allocations: 99.95 kB / 285.2 MB, free: 4.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003046/0.01891, allocations: 0.5195 MB / 285.7 MB, free: 4.379 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004183/0.01932, allocations: 317.2 kB / 286 MB, free: 4.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/0.01979, allocations: 432.1 kB / 286.4 MB, free: 3.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007704/0.02056, allocations: 0.6435 MB / 287.1 MB, free: 2.926 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.02056, allocations: 0 / 287.1 MB, free: 2.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001069/0.02163, allocations: 0.7903 MB / 287.9 MB, free: 2.133 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.02165, allocations: 4 kB / 287.9 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.02166, allocations: 4 kB / 287.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.02168, allocations: 4 kB / 287.9 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005969/0.02227, allocations: 163.7 kB / 288 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.02228, allocations: 4 kB / 288 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.02265, allocations: 75.91 kB / 288.1 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.02269, allocations: 20.09 kB / 288.1 MB, free: 1.863 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.0001985/0.02289, allocations: 196.4 kB / 288.3 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/0.02311, allocations: 153.4 kB / 288.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.41e-05/0.02319, allocations: 75.55 kB / 288.6 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.0232, allocations: 8 kB / 288.6 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.02321, allocations: 0 / 288.6 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.02322, allocations: 7.969 kB / 288.6 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.02512, allocations: 1.524 MB / 290.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.02513, allocations: 12 kB / 290.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003641/0.02549, allocations: 167.7 kB / 290.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.128e-06/0.0255, allocations: 12 kB / 290.3 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.02554, allocations: 28 kB / 290.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.06e-05/0.02555, allocations: 20.39 kB / 290.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/0.02556, allocations: 27.86 kB / 290.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.02664, allocations: 1.24 MB / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.02678, allocations: 103.6 kB / 291.7 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.712e-05/0.02682, allocations: 24 kB / 291.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.02709, allocations: 67.97 kB / 291.8 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.02722, allocations: 83.64 kB / 291.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.02725, allocations: 35.94 kB / 291.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001054/0.02736, allocations: 201.1 kB / 292.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02736, allocations: 0 / 292.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004697/0.02783, allocations: 124 kB / 292.2 MB, free: 13.34 MB / 282.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.0001269/0.02795, allocations: 134.9 kB / 292.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007918/0.02875, allocations: 0.5819 MB / 292.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.02875, allocations: 4 kB / 292.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.02897, allocations: 161.8 kB / 293.1 MB, free: 12.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.02958, allocations: 169.8 kB / 293.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.03105, allocations: 1.18 MB / 294.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.379e-05/0.03115, allocations: 142.7 kB / 294.6 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002646/0.03141, allocations: 87.22 kB / 294.7 MB, free: 10.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.03162, allocations: 44.48 kB / 294.7 MB, free: 10.61 MB / 282.7 MB Notification: Performance of SimCode: time 1.022e-06/0.03162, allocations: 0 / 294.7 MB, free: 10.61 MB / 282.7 MB Notification: Performance of Templates: time 0.01031/0.04193, allocations: 9.537 MB / 304.2 MB, free: 1.141 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9111376283690333]