Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001048/0.001048, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001168/0.001168, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.043/1.043, allocations: 177 MB / 204.8 MB, free: 5.566 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.595e-05/1.74e-05, allocations: 6.25 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002425/0.002442, allocations: 2.366 MB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.003492, allocations: 0.8336 MB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.0036, allocations: 7.938 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002469/0.003847, allocations: 55.56 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.004008, allocations: 55.5 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.00432, allocations: 183.5 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.004627, allocations: 387.5 kB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.004769, allocations: 84.19 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.00503, allocations: 231.5 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.005216, allocations: 151.6 kB / 277.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.005256, allocations: 32 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.62e-05/0.005292, allocations: 36 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.005367, allocations: 99.7 kB / 277.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.485e-05/0.005442, allocations: 107.7 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.005672, allocations: 259.1 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.005674, allocations: 3.938 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.005675, allocations: 0 / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.005679, allocations: 0 / 277.7 MB, free: 12.57 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.000784/0.006463, allocations: 0.6404 MB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.006495, allocations: 15.98 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.08e-05/0.006575, allocations: 72.7 kB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.006805, allocations: 216.6 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.006987, allocations: 351.9 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.007029, allocations: 24.38 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005711/0.0076, allocations: 460.7 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.007613, allocations: 4.188 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.007639, allocations: 20.12 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.007648, allocations: 8 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.008011, allocations: 240.4 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009364/0.008947, allocations: 0.9291 MB / 280.7 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.00948, allocations: 343.9 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.009647, allocations: 150.7 kB / 281.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.009682, allocations: 16.33 kB / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.009704, allocations: 49.33 kB / 281.2 MB, free: 8.773 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.824e-06/0.009706, allocations: 0 / 281.2 MB, free: 8.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.007009/0.01671, allocations: 2.624 MB / 283.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.01678, allocations: 145 kB / 284 MB, free: 5.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.01691, allocations: 250.5 kB / 284.3 MB, free: 5.707 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.01697, allocations: 33.7 kB / 284.3 MB, free: 5.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.734e-05/0.01704, allocations: 192.5 kB / 284.5 MB, free: 5.473 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.01716, allocations: 194.3 kB / 284.7 MB, free: 5.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.01733, allocations: 99.98 kB / 284.8 MB, free: 5.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.01744, allocations: 0.5157 MB / 285.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/0.01785, allocations: 317.2 kB / 285.6 MB, free: 4.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004423/0.0183, allocations: 436 kB / 286 MB, free: 3.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007491/0.01905, allocations: 0.6396 MB / 286.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01905, allocations: 0 / 286.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009933/0.02004, allocations: 0.7824 MB / 287.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.02005, allocations: 4 kB / 287.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.02006, allocations: 4.312 kB / 287.4 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.02007, allocations: 4 kB / 287.4 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005782/0.02065, allocations: 168 kB / 287.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.02066, allocations: 7.984 kB / 287.6 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/0.02102, allocations: 75.86 kB / 287.7 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.661e-05/0.02107, allocations: 27.97 kB / 287.7 MB, free: 2.121 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.0001694/0.02124, allocations: 188.4 kB / 287.9 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.02144, allocations: 153.4 kB / 288.1 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.186e-05/0.02151, allocations: 63.31 kB / 288.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.02152, allocations: 8 kB / 288.1 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.02152, allocations: 11.92 kB / 288.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.02152, allocations: 0 / 288.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.02338, allocations: 1.512 MB / 289.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.02339, allocations: 8 kB / 289.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.02375, allocations: 171.8 kB / 289.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.02376, allocations: 16 kB / 289.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.02379, allocations: 28 kB / 289.9 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.0238, allocations: 19.92 kB / 289.9 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.756e-06/0.02381, allocations: 15.94 kB / 289.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.02505, allocations: 1.236 MB / 291.1 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.02515, allocations: 83.64 kB / 291.2 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.02519, allocations: 27.98 kB / 291.2 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.02545, allocations: 59.95 kB / 291.3 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.02557, allocations: 91.62 kB / 291.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.0256, allocations: 31.94 kB / 291.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.759e-05/0.02568, allocations: 169.2 kB / 291.6 MB, free: 13.81 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02568, allocations: 4 kB / 291.6 MB, free: 13.81 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003517/0.02603, allocations: 116 kB / 291.7 MB, free: 13.7 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 9.889e-05/0.02613, allocations: 135 kB / 291.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007363/0.02687, allocations: 0.5862 MB / 292.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.02687, allocations: 0 / 292.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.02707, allocations: 166.7 kB / 292.6 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005418/0.02761, allocations: 146.7 kB / 292.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.0289, allocations: 1.127 MB / 293.9 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.84e-05/0.02898, allocations: 134.8 kB / 294 MB, free: 11.16 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000248/0.02923, allocations: 87.17 kB / 294.1 MB, free: 11.08 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/0.02943, allocations: 36.5 kB / 294.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02943, allocations: 0 / 294.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of Templates: time 0.009505/0.03894, allocations: 9.265 MB / 303.4 MB, free: 1.844 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.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.988283955026418]