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.001096/0.001096, allocations: 80.8 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.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.00112/0.00112, allocations: 174.3 kB / 24.91 MB, free: 8.773 MB / 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.9315/0.9315, allocations: 177.1 MB / 205.3 MB, free: 5.062 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.573e-06/1.573e-06, allocations: 0 / 273.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.672e-05, allocations: 6.25 kB / 273.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003286/0.003302, allocations: 2.422 MB / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.004838, allocations: 0.8684 MB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.005024, allocations: 11.88 kB / 276.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.005305, allocations: 51.58 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.005532, allocations: 67.48 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005356/0.006068, allocations: 211.3 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.006458, allocations: 399.5 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.006608, allocations: 74.41 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/0.006961, allocations: 239.5 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.007176, allocations: 143.6 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.007234, allocations: 36 kB / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.954e-05/0.007283, allocations: 40 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.007391, allocations: 115.6 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.007495, allocations: 103.7 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.007848, allocations: 286.9 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.007851, allocations: 4 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.007852, allocations: 0 / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.007857, allocations: 0 / 278.5 MB, free: 12.07 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.0009075/0.008765, allocations: 0.5659 MB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.008801, allocations: 12.03 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.008902, allocations: 68.88 kB / 279.1 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.009228, allocations: 221.1 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/0.009462, allocations: 347.9 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.197e-05/0.009524, allocations: 36.36 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006482/0.01017, allocations: 418.1 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.01019, allocations: 4.141 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.01022, allocations: 16.12 kB / 280.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.01023, allocations: 7.984 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.01063, allocations: 177.4 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009969/0.01162, allocations: 0.639 MB / 281 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006408/0.01226, allocations: 330.5 kB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.01244, allocations: 107.6 kB / 281.4 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.01248, allocations: 12 kB / 281.4 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.01251, allocations: 42.55 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.274e-06/0.01251, allocations: 0 / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.0069/0.01941, allocations: 2.25 MB / 283.7 MB, free: 6.602 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.01948, allocations: 149 kB / 283.9 MB, free: 6.426 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.01961, allocations: 229 kB / 284.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.01966, allocations: 33.7 kB / 284.1 MB, free: 6.152 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.01971, allocations: 141.7 kB / 284.3 MB, free: 6.008 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.01982, allocations: 194.3 kB / 284.4 MB, free: 5.816 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.01998, allocations: 102.2 kB / 284.5 MB, free: 5.711 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.715e-05/0.02006, allocations: 342.7 kB / 284.9 MB, free: 5.367 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.02029, allocations: 208.1 kB / 285.1 MB, free: 5.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.02056, allocations: 290.6 kB / 285.4 MB, free: 4.852 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.02103, allocations: 0.4912 MB / 285.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.02104, allocations: 3.938 kB / 285.9 MB, free: 4.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005953/0.02163, allocations: 0.5324 MB / 286.4 MB, free: 3.789 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.02165, allocations: 4 kB / 286.4 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.02165, allocations: 12.2 kB / 286.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.02166, allocations: 4 kB / 286.4 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.02221, allocations: 167.7 kB / 286.6 MB, free: 3.605 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.02222, allocations: 4 kB / 286.6 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.02252, allocations: 71.91 kB / 286.7 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.906e-05/0.02256, allocations: 16 kB / 286.7 MB, free: 3.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.0001489/0.02271, allocations: 156.4 kB / 286.8 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.02287, allocations: 117.6 kB / 286.9 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.02293, allocations: 67.61 kB / 287 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.02294, allocations: 11.94 kB / 287 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.02294, allocations: 0 / 287 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.02295, allocations: 3.984 kB / 287 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.02436, allocations: 1.212 MB / 288.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.02436, allocations: 8 kB / 288.2 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.02469, allocations: 179.7 kB / 288.4 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.0247, allocations: 12 kB / 288.4 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.02473, allocations: 28 kB / 288.5 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.047e-05/0.02474, allocations: 19.92 kB / 288.5 MB, free: 1.543 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.433e-06/0.02475, allocations: 15.94 kB / 288.5 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006029/0.02535, allocations: 0.8441 MB / 289.3 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.02546, allocations: 75.64 kB / 289.4 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.0255, allocations: 35.98 kB / 289.4 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.02573, allocations: 59.98 kB / 289.5 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.02584, allocations: 83.64 kB / 289.6 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.02586, allocations: 31.98 kB / 289.6 MB, free: 252 kB / 266.7 MB Notification: Performance of sorting global known variables: time 5.343e-05/0.02592, allocations: 70.78 kB / 289.7 MB, free: 176 kB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02592, allocations: 0 / 289.7 MB, free: 176 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003255/0.02624, allocations: 127.9 kB / 289.8 MB, free: 48 kB / 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.1166/0.1428, allocations: 110.1 kB / 289.9 MB, free: 24.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009115/0.1437, allocations: 461.9 kB / 290.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/0.1437, allocations: 4.688 kB / 290.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.144, allocations: 160.5 kB / 290.5 MB, free: 24.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/0.1447, allocations: 151.7 kB / 290.7 MB, free: 24.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.1462, allocations: 1.041 MB / 291.7 MB, free: 24.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.1464, allocations: 137.1 kB / 291.9 MB, free: 24.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003911/0.1468, allocations: 83.27 kB / 291.9 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.1471, allocations: 117.7 kB / 292 MB, free: 24.18 MB / 266.7 MB Notification: Performance of SimCode: time 9.41e-07/0.1471, allocations: 1.312 kB / 292 MB, free: 24.18 MB / 266.7 MB Notification: Performance of Templates: time 0.01717/0.1643, allocations: 9.669 MB / 301.7 MB, free: 21.37 MB / 266.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 -s gbode -gbm=radauIIA3 -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.7610969487577677]