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.001262/0.001262, allocations: 89.22 kB / 20.68 MB, free: 1.02 MB / 14.72 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.001361/0.001361, allocations: 158.6 kB / 23.95 MB, free: 4.152 MB / 14.72 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 1.43/1.43, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.753e-06/1.753e-06, allocations: 0 / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.256e-05/2.432e-05, allocations: 2.281 kB / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003658/0.003682, allocations: 2.304 MB / 327.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.005635, allocations: 0.8303 MB / 328.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.005795, allocations: 14.44 kB / 328.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.006086, allocations: 53.27 kB / 328.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.00632, allocations: 69.66 kB / 328.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005961/0.006916, allocations: 207.7 kB / 328.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005311/0.007447, allocations: 409.1 kB / 328.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.007645, allocations: 65.38 kB / 328.9 MB, free: 14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004506/0.008096, allocations: 233.8 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.008364, allocations: 146.7 kB / 329.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.099e-05/0.008435, allocations: 36.12 kB / 329.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.535e-05/0.0085, allocations: 34.78 kB / 329.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.008676, allocations: 121.5 kB / 329.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.008836, allocations: 110.1 kB / 329.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005729/0.009409, allocations: 394.4 kB / 330 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.009415, allocations: 5.156 kB / 330 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.009416, allocations: 3.938 kB / 330 MB, free: 13.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.009422, allocations: 0 / 330 MB, free: 13.49 MB / 302.1 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.001486/0.01091, allocations: 0.5947 MB / 330.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.01096, allocations: 13.05 kB / 330.6 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.01108, allocations: 45.17 kB / 330.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005538/0.01163, allocations: 251.8 kB / 330.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004503/0.01209, allocations: 348.7 kB / 331.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-05/0.01217, allocations: 32.47 kB / 331.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.01364, allocations: 0.583 MB / 331.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.01366, allocations: 6.25 kB / 331.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.303e-05/0.01371, allocations: 18.19 kB / 331.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.01372, allocations: 7.531 kB / 331.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.01536, allocations: 0.5108 MB / 332.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.01694, allocations: 0.8427 MB / 333.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.0186, allocations: 468.4 kB / 333.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007392/0.01933, allocations: 250.7 kB / 333.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.01938, allocations: 5.188 kB / 333.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.01942, allocations: 46.28 kB / 334 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.023e-06/0.01942, allocations: 1.25 kB / 334 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.04295/0.06238, allocations: 5.802 MB / 339.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.0625, allocations: 153 kB / 339.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.06284, allocations: 269.8 kB / 340.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.297e-05/0.06294, allocations: 37.7 kB / 340.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.06305, allocations: 161.6 kB / 340.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.06325, allocations: 186.3 kB / 340.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.06356, allocations: 102.3 kB / 340.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.06372, allocations: 342.8 kB / 341 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/0.06553, allocations: 0.6142 MB / 341.6 MB, free: 4.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002029/0.06756, allocations: 0.6859 MB / 342.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00344/0.071, allocations: 1.122 MB / 343.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.071, allocations: 0 / 343.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003954/0.07496, allocations: 1.298 MB / 344.7 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.07498, allocations: 8 kB / 344.7 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.07499, allocations: 0 / 344.7 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.07501, allocations: 4 kB / 344.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.07636, allocations: 179.7 kB / 344.9 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.07638, allocations: 12.02 kB / 344.9 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009613/0.07734, allocations: 88.22 kB / 345 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.499e-05/0.07742, allocations: 19.98 kB / 345 MB, free: 0.6641 MB / 302.1 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.0003856/0.07781, allocations: 189.6 kB / 345.2 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003305/0.07814, allocations: 157.4 kB / 345.4 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001835/0.07832, allocations: 67.61 kB / 345.4 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.07833, allocations: 12 kB / 345.4 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.07834, allocations: 0 / 345.4 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.07835, allocations: 3.984 kB / 345.4 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005116/0.08347, allocations: 1.93 MB / 347.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.08348, allocations: 12 kB / 347.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008184/0.0843, allocations: 188.2 kB / 347.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/0.08432, allocations: 12 kB / 347.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.08437, allocations: 28 kB / 347.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.171e-05/0.08439, allocations: 27.92 kB / 347.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.168e-05/0.0844, allocations: 15.94 kB / 347.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/0.08807, allocations: 1.562 MB / 349.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.08832, allocations: 107.6 kB / 349.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.141e-05/0.0884, allocations: 23.98 kB / 349.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/0.08905, allocations: 83.98 kB / 349.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.08928, allocations: 95.64 kB / 349.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/0.08934, allocations: 35.92 kB / 349.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.08955, allocations: 193.2 kB / 349.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.08955, allocations: 0 / 349.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006362/0.09019, allocations: 116 kB / 349.9 MB, free: 11.5 MB / 318.1 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.0001968/0.09039, allocations: 143.1 kB / 350 MB, free: 11.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003133/0.09352, allocations: 0.9908 MB / 351 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.419e-05/0.09354, allocations: 4.438 kB / 351 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/0.09478, allocations: 345.8 kB / 351.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009933/0.09578, allocations: 143.2 kB / 351.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.09842, allocations: 1.172 MB / 352.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.09869, allocations: 232.5 kB / 352.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004718/0.09916, allocations: 95.2 kB / 353 MB, free: 8.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000453/0.09961, allocations: 36.5 kB / 353 MB, free: 8.16 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.09961, allocations: 0 / 353 MB, free: 8.16 MB / 318.1 MB Notification: Performance of Templates: time 0.02183/0.1214, allocations: 8.938 MB / 361.9 MB, free: 15.29 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.774457830935717]