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.0009508/0.0009508, allocations: 88.28 kB / 21.44 MB, free: 3.121 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.00678/0.00678, allocations: 153.8 kB / 24.69 MB, free: 9.441 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.8819/0.8819, allocations: 177 MB / 204.9 MB, free: 5.75 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.433e-06/1.433e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.836e-05/2.98e-05, allocations: 2.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002699/0.002728, allocations: 2.309 MB / 328.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.003981, allocations: 0.8297 MB / 328.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.004137, allocations: 11.94 kB / 328.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002913/0.004428, allocations: 51.58 kB / 329 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.004619, allocations: 71.42 kB / 329 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003936/0.005013, allocations: 203.4 kB / 329.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.00532, allocations: 407.4 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.005476, allocations: 71.61 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.005762, allocations: 231.5 kB / 329.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.005929, allocations: 151.6 kB / 330.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.946e-05/0.005968, allocations: 32 kB / 330.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.367e-05/0.006002, allocations: 36 kB / 330.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.961e-05/0.006092, allocations: 119.6 kB / 330.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.184e-05/0.006183, allocations: 111.7 kB / 330.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.006528, allocations: 390.7 kB / 330.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.006532, allocations: 4 kB / 330.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.006534, allocations: 0 / 330.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.006539, allocations: 3.938 kB / 330.8 MB, free: 10.39 MB / 298.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.0008564/0.007395, allocations: 0.5948 MB / 331.3 MB, free: 9.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.007433, allocations: 15.98 kB / 331.4 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.688e-05/0.007499, allocations: 48.69 kB / 331.4 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.007868, allocations: 253.1 kB / 331.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.008078, allocations: 347.9 kB / 332 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.842e-05/0.008127, allocations: 32.38 kB / 332 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008075/0.008934, allocations: 0.578 MB / 332.6 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.008951, allocations: 4.188 kB / 332.6 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.673e-05/0.008978, allocations: 12.12 kB / 332.6 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.008988, allocations: 12 kB / 332.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007896/0.009778, allocations: 0.5152 MB / 333.1 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009897/0.01077, allocations: 0.8406 MB / 334 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008819/0.01165, allocations: 466.6 kB / 334.4 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003603/0.01201, allocations: 239.5 kB / 334.7 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.381e-05/0.01205, allocations: 8 kB / 334.7 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.01208, allocations: 50.42 kB / 334.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.834e-06/0.01208, allocations: 3.938 kB / 334.7 MB, free: 6.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.0181/0.03019, allocations: 5.806 MB / 340.5 MB, free: 324 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.512e-05/0.03027, allocations: 149 kB / 340.7 MB, free: 144 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002245/0.0305, allocations: 269.8 kB / 341 MB, free: 15.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.03055, allocations: 37.7 kB / 341 MB, free: 15.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.404e-05/0.03062, allocations: 157.7 kB / 341.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.03074, allocations: 190.3 kB / 341.3 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.03092, allocations: 102.3 kB / 341.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.757e-05/0.031, allocations: 342.8 kB / 341.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008747/0.03188, allocations: 0.6064 MB / 342.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008952/0.03277, allocations: 0.6898 MB / 343.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.03438, allocations: 1.118 MB / 344.2 MB, free: 12.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.03438, allocations: 0 / 344.2 MB, free: 12.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001848/0.03623, allocations: 1.306 MB / 345.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.03625, allocations: 8 kB / 345.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.03626, allocations: 0 / 345.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.03628, allocations: 4 kB / 345.5 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/0.03685, allocations: 183.7 kB / 345.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.03686, allocations: 8.031 kB / 345.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003907/0.03725, allocations: 87.84 kB / 345.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.206e-05/0.03729, allocations: 23.98 kB / 345.8 MB, free: 10.95 MB / 314.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.0002253/0.03752, allocations: 177.6 kB / 346 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.03772, allocations: 157.4 kB / 346.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.03782, allocations: 67.61 kB / 346.2 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.03783, allocations: 15.94 kB / 346.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.03783, allocations: 0 / 346.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.03784, allocations: 4.453 kB / 346.2 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.04043, allocations: 1.93 MB / 348.1 MB, free: 8.418 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.04044, allocations: 15.98 kB / 348.2 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.04081, allocations: 180.3 kB / 348.3 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.467e-06/0.04082, allocations: 15.94 kB / 348.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.04085, allocations: 32 kB / 348.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.04087, allocations: 23.92 kB / 348.4 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/0.04087, allocations: 19.94 kB / 348.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.04265, allocations: 1.562 MB / 350 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.0428, allocations: 107.6 kB / 350.1 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.04285, allocations: 27.98 kB / 350.1 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.04313, allocations: 75.98 kB / 350.2 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.04326, allocations: 103.6 kB / 350.3 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.04329, allocations: 31.94 kB / 350.3 MB, free: 6.082 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001169/0.04341, allocations: 189.2 kB / 350.5 MB, free: 5.898 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04341, allocations: 0 / 350.5 MB, free: 5.898 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003839/0.04379, allocations: 120 kB / 350.6 MB, free: 5.781 MB / 314.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.0001408/0.04393, allocations: 142.9 kB / 350.8 MB, free: 5.633 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.04542, allocations: 0.9907 MB / 351.8 MB, free: 4.641 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.04543, allocations: 4.438 kB / 351.8 MB, free: 4.637 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005292/0.04595, allocations: 337.9 kB / 352.1 MB, free: 4.309 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.04655, allocations: 148.8 kB / 352.2 MB, free: 4.164 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.04799, allocations: 1.207 MB / 353.4 MB, free: 2.785 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.04815, allocations: 232.5 kB / 353.7 MB, free: 2.535 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.04837, allocations: 48.48 kB / 353.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of SimCode: time 7.91e-07/0.04837, allocations: 0 / 353.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of Templates: time 0.006594/0.05497, allocations: 7.405 MB / 361.1 MB, free: 11.1 MB / 330.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=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.810681262053549]