Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009737/0.0009737, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 159.9 kB / 24.91 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9621/0.9621, allocations: 177 MB / 205.2 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.534e-05/1.705e-05, allocations: 2.312 kB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002722/0.00274, allocations: 2.441 MB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.004005, allocations: 0.8645 MB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.004151, allocations: 7.938 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.004397, allocations: 51.56 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.004583, allocations: 71.42 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.005004, allocations: 207.3 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.005361, allocations: 403.4 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.005514, allocations: 78.39 kB / 277.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000307/0.005821, allocations: 235.5 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.005988, allocations: 143.6 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.006035, allocations: 36 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.676e-05/0.006071, allocations: 32 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.471e-05/0.006166, allocations: 119.6 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.394e-05/0.00625, allocations: 111.6 kB / 278.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.006502, allocations: 283 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.006504, allocations: 0 / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.006504, allocations: 0 / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.006508, allocations: 0 / 278.4 MB, free: 12.14 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.0006278/0.007136, allocations: 0.5737 MB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.007165, allocations: 11.98 kB / 279 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.437e-05/0.00723, allocations: 64.89 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.00746, allocations: 221.1 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.007631, allocations: 339.9 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.007671, allocations: 36.38 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004398/0.008111, allocations: 423.6 kB / 280.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.008126, allocations: 8.141 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.008146, allocations: 16.12 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.008154, allocations: 8 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.008407, allocations: 182.6 kB / 280.3 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.009066, allocations: 0.6274 MB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004269/0.009493, allocations: 333.5 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.009603, allocations: 107.5 kB / 281.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.009635, allocations: 12 kB / 281.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.009657, allocations: 38.56 kB / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.532e-06/0.009658, allocations: 0 / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005442/0.0151, allocations: 2.258 MB / 283.7 MB, free: 6.664 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.01518, allocations: 145.1 kB / 283.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.01533, allocations: 225 kB / 284 MB, free: 6.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.239e-05/0.01538, allocations: 41.7 kB / 284.1 MB, free: 6.215 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.01544, allocations: 141.7 kB / 284.2 MB, free: 6.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.01556, allocations: 194.3 kB / 284.4 MB, free: 5.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.01573, allocations: 102.2 kB / 284.5 MB, free: 5.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.531e-05/0.01582, allocations: 346.7 kB / 284.8 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.01604, allocations: 200.2 kB / 285 MB, free: 5.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.01631, allocations: 298.5 kB / 285.3 MB, free: 4.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004712/0.01678, allocations: 499 kB / 285.8 MB, free: 4.395 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.01679, allocations: 3.938 kB / 285.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006033/0.01739, allocations: 0.5324 MB / 286.3 MB, free: 3.852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.01741, allocations: 8 kB / 286.3 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.01741, allocations: 0 / 286.3 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.01742, allocations: 4 kB / 286.4 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.01802, allocations: 179.2 kB / 286.5 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.01802, allocations: 7.984 kB / 286.5 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.01834, allocations: 67.92 kB / 286.6 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.01838, allocations: 15.98 kB / 286.6 MB, free: 3.578 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.0001642/0.01855, allocations: 156.4 kB / 286.8 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.01871, allocations: 117.6 kB / 286.9 MB, free: 3.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.736e-05/0.01879, allocations: 67.61 kB / 287 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.0188, allocations: 12 kB / 287 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.0188, allocations: 0 / 287 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.01881, allocations: 3.984 kB / 287 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.02027, allocations: 1.204 MB / 288.2 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.02028, allocations: 12 kB / 288.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003374/0.02062, allocations: 175.8 kB / 288.4 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.02063, allocations: 16 kB / 288.4 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.02066, allocations: 27.98 kB / 288.4 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/0.02067, allocations: 15.94 kB / 288.4 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.02067, allocations: 15.94 kB / 288.4 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006221/0.0213, allocations: 0.8512 MB / 289.3 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.0214, allocations: 79.64 kB / 289.4 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.02144, allocations: 24 kB / 289.4 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.02167, allocations: 59.94 kB / 289.4 MB, free: 440 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.02178, allocations: 87.64 kB / 289.5 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.02181, allocations: 28 kB / 289.6 MB, free: 324 kB / 266.7 MB Notification: Performance of sorting global known variables: time 5.884e-05/0.02187, allocations: 82.8 kB / 289.6 MB, free: 236 kB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02187, allocations: 0 / 289.6 MB, free: 236 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003311/0.0222, allocations: 119.9 kB / 289.8 MB, free: 116 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.0001137/0.02231, allocations: 120.2 kB / 289.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000491/0.0228, allocations: 461.5 kB / 290.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.02281, allocations: 4 kB / 290.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.02297, allocations: 160.2 kB / 290.5 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.02346, allocations: 152.4 kB / 290.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.02462, allocations: 1.052 MB / 291.7 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.821e-05/0.0247, allocations: 134.8 kB / 291.8 MB, free: 13.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.02495, allocations: 79.23 kB / 291.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.02525, allocations: 115.3 kB / 292 MB, free: 13.67 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02525, allocations: 0 / 292 MB, free: 13.67 MB / 282.7 MB Notification: Performance of Templates: time 0.009413/0.03466, allocations: 9.655 MB / 301.7 MB, free: 4.07 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.842913626227528]