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.0009782/0.0009782, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001001/0.001001, allocations: 161.4 kB / 25.61 MB, free: 8.582 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.9273/0.9273, allocations: 177.2 MB / 206.1 MB, free: 4.473 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.232e-06/1.232e-06, allocations: 0 / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.937e-05/2.06e-05, allocations: 3 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003572/0.003593, allocations: 2.379 MB / 276.5 MB, free: 2.051 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.005093, allocations: 0.8441 MB / 277.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.005265, allocations: 7.938 kB / 277.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002844/0.00555, allocations: 57.5 kB / 277.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.005775, allocations: 75.36 kB / 277.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004987/0.006274, allocations: 200.6 kB / 277.7 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004177/0.006691, allocations: 401.9 kB / 278.1 MB, free: 492 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.006852, allocations: 67.84 kB / 278.2 MB, free: 424 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003564/0.007208, allocations: 239.5 kB / 278.4 MB, free: 184 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.007413, allocations: 143.6 kB / 278.6 MB, free: 40 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.007468, allocations: 36 kB / 278.6 MB, free: 4 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.444e-05/0.007532, allocations: 36.05 kB / 278.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.007635, allocations: 115.6 kB / 278.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.007742, allocations: 115.6 kB / 278.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.008059, allocations: 275 kB / 279.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.008061, allocations: 3.938 kB / 279.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.008062, allocations: 4 kB / 279.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.008067, allocations: 0 / 279.1 MB, free: 15.46 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.0009482/0.009015, allocations: 0.6945 MB / 279.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.009048, allocations: 12.03 kB / 279.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.009156, allocations: 76.7 kB / 279.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.00948, allocations: 251.9 kB / 280.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002287/0.009709, allocations: 351.9 kB / 280.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.009763, allocations: 32.36 kB / 280.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00063/0.01039, allocations: 433.3 kB / 281 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.01041, allocations: 8.062 kB / 281 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.01044, allocations: 20.12 kB / 281 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.01046, allocations: 8 kB / 281 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.01085, allocations: 192.5 kB / 281.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.01189, allocations: 0.8985 MB / 282.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.01252, allocations: 328.7 kB / 282.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.0127, allocations: 126.8 kB / 282.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.01274, allocations: 8 kB / 282.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.01277, allocations: 41.39 kB / 282.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.144e-06/0.01277, allocations: 0 / 282.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006695/0.01946, allocations: 2.414 MB / 285 MB, free: 9.312 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.01953, allocations: 149 kB / 285.1 MB, free: 9.133 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.01969, allocations: 300.1 kB / 285.4 MB, free: 8.824 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.01974, allocations: 33.7 kB / 285.5 MB, free: 8.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.01982, allocations: 200.4 kB / 285.7 MB, free: 8.582 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.01994, allocations: 198.3 kB / 285.8 MB, free: 8.387 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.02012, allocations: 107.8 kB / 286 MB, free: 8.273 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.02027, allocations: 0.5157 MB / 286.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.02057, allocations: 245.2 kB / 286.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003465/0.02091, allocations: 356.1 kB / 287.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006301/0.02154, allocations: 0.5497 MB / 287.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.02155, allocations: 4 kB / 287.6 MB, free: 6.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009553/0.0225, allocations: 0.6574 MB / 288.3 MB, free: 5.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.02252, allocations: 4 kB / 288.3 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.02252, allocations: 4.219 kB / 288.3 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.02254, allocations: 8 kB / 288.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005958/0.02313, allocations: 159.8 kB / 288.4 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.02314, allocations: 7.984 kB / 288.4 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003747/0.02351, allocations: 75.86 kB / 288.5 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.02356, allocations: 15.98 kB / 288.5 MB, free: 5.598 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.00019/0.02375, allocations: 196.4 kB / 288.7 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.02395, allocations: 153.7 kB / 288.9 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.653e-05/0.02405, allocations: 67.61 kB / 288.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.02406, allocations: 11.94 kB / 289 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.02406, allocations: 0 / 289 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.02407, allocations: 3.984 kB / 289 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.02592, allocations: 1.465 MB / 290.4 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.02593, allocations: 12 kB / 290.4 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.02629, allocations: 167.7 kB / 290.6 MB, free: 3.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/0.0263, allocations: 12 kB / 290.6 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/0.02634, allocations: 32 kB / 290.6 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.127e-05/0.02635, allocations: 23.92 kB / 290.7 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.421e-05/0.02636, allocations: 15.94 kB / 290.7 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008037/0.02717, allocations: 1.061 MB / 291.7 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.0273, allocations: 99.67 kB / 291.8 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/0.02734, allocations: 27.98 kB / 291.9 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.0276, allocations: 59.94 kB / 291.9 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.02772, allocations: 95.67 kB / 292 MB, free: 1.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.02775, allocations: 24 kB / 292 MB, free: 1.656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.818e-05/0.02784, allocations: 193.1 kB / 292.2 MB, free: 1.469 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02784, allocations: 0 / 292.2 MB, free: 1.469 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003859/0.02823, allocations: 124 kB / 292.4 MB, free: 1.348 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.0001255/0.02835, allocations: 138.9 kB / 292.5 MB, free: 1.199 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005984/0.02895, allocations: 0.5076 MB / 293 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.02895, allocations: 0 / 293 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.02913, allocations: 159 kB / 293.1 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.02972, allocations: 156.2 kB / 293.3 MB, free: 392 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.03112, allocations: 1.175 MB / 294.5 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.03122, allocations: 134.8 kB / 294.6 MB, free: 14.83 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002673/0.03149, allocations: 75.23 kB / 294.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.03181, allocations: 146.2 kB / 294.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of SimCode: time 8.11e-07/0.03181, allocations: 0 / 294.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of Templates: time 0.01093/0.04274, allocations: 9.925 MB / 304.7 MB, free: 4.773 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.956473591271788]