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.001423/0.001423, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001598/0.001598, allocations: 168.8 kB / 24.82 MB, free: 9.27 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 1.004/1.004, allocations: 177.1 MB / 205.3 MB, free: 5.516 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.864e-06/1.864e-06, allocations: 0 / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.592e-05/1.778e-05, allocations: 5.266 kB / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00254/0.002558, allocations: 2.373 MB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.00373, allocations: 0.8492 MB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.003876, allocations: 7.938 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.004108, allocations: 59.5 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.004277, allocations: 71.42 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.00467, allocations: 203.4 kB / 276.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003078/0.004978, allocations: 399.4 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.00511, allocations: 71.84 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.005386, allocations: 239.5 kB / 277.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.005541, allocations: 143.6 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.343e-05/0.005585, allocations: 32 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.694e-05/0.005622, allocations: 36 kB / 277.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.705e-05/0.005709, allocations: 111.6 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.005788, allocations: 115.6 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.006032, allocations: 286.9 kB / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.006035, allocations: 4 kB / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.006036, allocations: 0 / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.788e-06/0.00604, allocations: 0 / 278.3 MB, free: 12.35 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.000723/0.006763, allocations: 0.6985 MB / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.006793, allocations: 8.031 kB / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.772e-05/0.00687, allocations: 80.7 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.00711, allocations: 247.9 kB / 279.4 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.00728, allocations: 343.9 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.007321, allocations: 32.38 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.007796, allocations: 443.2 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.007809, allocations: 4.188 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.00783, allocations: 16.12 kB / 280.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.007838, allocations: 11.94 kB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.008106, allocations: 199 kB / 280.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007857/0.008892, allocations: 0.9062 MB / 281.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/0.009347, allocations: 323.1 kB / 281.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.009469, allocations: 122.8 kB / 281.7 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.009506, allocations: 19.98 kB / 281.7 MB, free: 8.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.009529, allocations: 45.33 kB / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.593e-06/0.009531, allocations: 0 / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006177/0.01571, allocations: 2.396 MB / 284.2 MB, free: 6.191 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/0.01577, allocations: 156.9 kB / 284.3 MB, free: 6.008 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.01593, allocations: 300.1 kB / 284.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.01599, allocations: 37.7 kB / 284.7 MB, free: 5.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.427e-05/0.01606, allocations: 200.4 kB / 284.9 MB, free: 5.453 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.01618, allocations: 198.3 kB / 285.1 MB, free: 5.258 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.01635, allocations: 107.9 kB / 285.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.01647, allocations: 0.5079 MB / 285.7 MB, free: 4.625 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.01676, allocations: 249.2 kB / 285.9 MB, free: 4.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/0.01708, allocations: 364 kB / 286.3 MB, free: 3.988 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005548/0.01763, allocations: 0.5458 MB / 286.8 MB, free: 3.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.01764, allocations: 0 / 286.8 MB, free: 3.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007611/0.0184, allocations: 0.6612 MB / 287.5 MB, free: 2.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.01841, allocations: 8 kB / 287.5 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.01842, allocations: 3.984 kB / 287.5 MB, free: 2.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.01843, allocations: 8 kB / 287.5 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/0.01897, allocations: 160 kB / 287.7 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.01898, allocations: 11.94 kB / 287.7 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.01932, allocations: 67.91 kB / 287.7 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.01936, allocations: 16 kB / 287.7 MB, free: 2.469 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.0001645/0.01952, allocations: 192.4 kB / 287.9 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.01972, allocations: 153.3 kB / 288.1 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.385e-05/0.01979, allocations: 67.62 kB / 288.1 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.01979, allocations: 15.98 kB / 288.2 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.0198, allocations: 0 / 288.2 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.0198, allocations: 4 kB / 288.2 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.02146, allocations: 1.458 MB / 289.6 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.02147, allocations: 12.25 kB / 289.6 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.02181, allocations: 167.8 kB / 289.8 MB, free: 196 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.02182, allocations: 19.98 kB / 289.8 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.02184, allocations: 28 kB / 289.8 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.02185, allocations: 19.88 kB / 289.9 MB, free: 128 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.136e-06/0.02186, allocations: 15.94 kB / 289.9 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007253/0.02259, allocations: 1.065 MB / 290.9 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.02271, allocations: 103.6 kB / 291.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.107e-05/0.02275, allocations: 31.92 kB / 291.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.023, allocations: 51.95 kB / 291.1 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.02312, allocations: 95.62 kB / 291.2 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.02314, allocations: 28.03 kB / 291.3 MB, free: 14.53 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.6e-05/0.02322, allocations: 193.1 kB / 291.4 MB, free: 14.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02322, allocations: 0 / 291.4 MB, free: 14.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003719/0.02359, allocations: 123.9 kB / 291.6 MB, free: 14.22 MB / 282.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.0001022/0.02369, allocations: 134.9 kB / 291.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005637/0.02426, allocations: 0.5038 MB / 292.2 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.02426, allocations: 4 kB / 292.2 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.02444, allocations: 163 kB / 292.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.02498, allocations: 160.2 kB / 292.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.02622, allocations: 1.167 MB / 293.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.913e-05/0.02631, allocations: 130.8 kB / 293.8 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002537/0.02657, allocations: 83.22 kB / 293.9 MB, free: 11.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.02688, allocations: 142.2 kB / 294 MB, free: 11.49 MB / 282.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02688, allocations: 0 / 294 MB, free: 11.49 MB / 282.7 MB Notification: Performance of Templates: time 0.009857/0.03674, allocations: 9.67 MB / 303.7 MB, free: 1.887 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.9047325858846307]