Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0009671/0.0009671, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001047/0.001047, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.9852/0.9852, allocations: 177 MB / 205.2 MB, free: 5.039 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.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.831e-05/1.965e-05, allocations: 6.25 kB / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002939/0.002958, allocations: 2.153 MB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007891/0.003747, allocations: 0.5334 MB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.202e-05/0.003839, allocations: 7.938 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.772e-05/0.003937, allocations: 15.8 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.321e-05/0.004, allocations: 31.72 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.00423, allocations: 63.8 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001387/0.004369, allocations: 119.5 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.004475, allocations: 50.61 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.492e-05/0.00457, allocations: 79.73 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.004676, allocations: 47.88 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.709e-05/0.004703, allocations: 8 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.181e-05/0.004725, allocations: 12 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.728e-05/0.004752, allocations: 23.86 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.551e-05/0.004797, allocations: 39.91 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.004959, allocations: 91.64 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004962, allocations: 4 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.004963, allocations: 0 / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.004968, allocations: 0 / 276.7 MB, free: 13.76 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0003777/0.005346, allocations: 332.3 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.005383, allocations: 15.98 kB / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.005418, allocations: 20.92 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.005584, allocations: 145.6 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.005596, allocations: 8.375 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.005622, allocations: 16.33 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/0.00585, allocations: 199.8 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.005859, allocations: 4.188 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.005869, allocations: 4.375 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.005874, allocations: 7.938 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.801e-05/0.005922, allocations: 39.92 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003373/0.006259, allocations: 449.9 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.006396, allocations: 99.69 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.495e-05/0.006431, allocations: 46.64 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.006446, allocations: 8 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.006463, allocations: 34.5 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.006464, allocations: 3.938 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001991/0.006663, allocations: 101.8 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.006719, allocations: 110.8 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.147e-05/0.006781, allocations: 134.6 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.006791, allocations: 29.7 kB / 278.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.859e-05/0.00683, allocations: 112 kB / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.401e-05/0.006844, allocations: 27.78 kB / 278.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.006873, allocations: 25.7 kB / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.54e-05/0.006938, allocations: 326.9 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.006951, allocations: 8 kB / 278.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.711e-05/0.006988, allocations: 71.64 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.107e-05/0.007049, allocations: 70.78 kB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.007052, allocations: 4 kB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.941e-05/0.007132, allocations: 89.47 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.007142, allocations: 4 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.007146, allocations: 4 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.007162, allocations: 4 kB / 279.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.527e-05/0.007257, allocations: 27.92 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.007261, allocations: 4 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.435e-05/0.007296, allocations: 20.09 kB / 279.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.007302, allocations: 8 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.275e-05/0.007365, allocations: 121.7 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.184e-05/0.007447, allocations: 61.67 kB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.007471, allocations: 16.78 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.007474, allocations: 0 / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.007477, allocations: 7.984 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.00748, allocations: 240 / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.007591, allocations: 89.81 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.007592, allocations: 0 / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.007726, allocations: 63.14 kB / 279.6 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.007728, allocations: 0 / 279.6 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.007739, allocations: 4 kB / 279.6 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.007741, allocations: 4 kB / 279.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.007742, allocations: 3.938 kB / 279.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.007862, allocations: 251.5 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.137e-05/0.007873, allocations: 11.89 kB / 279.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.007888, allocations: 4 kB / 279.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.616e-05/0.007945, allocations: 7.984 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.42e-05/0.007969, allocations: 4 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.007976, allocations: 16.02 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.952e-05/0.007996, allocations: 24.83 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007996, allocations: 0 / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001549/0.008151, allocations: 27.95 kB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 6.103e-05/0.008212, allocations: 84.3 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.361e-05/0.008295, allocations: 59.72 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.008299, allocations: 4.438 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.643e-05/0.008315, allocations: 20.8 kB / 280.1 MB, free: 9.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.008562, allocations: 51.03 kB / 280.1 MB, free: 9.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005614/0.009123, allocations: 339.1 kB / 280.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.501e-05/0.009168, allocations: 75.33 kB / 280.6 MB, free: 9.473 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.845e-05/0.009197, allocations: 17.14 kB / 280.6 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.875e-05/0.009255, allocations: 67.36 kB / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.009256, allocations: 0 / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of Templates: time 0.002651/0.01191, allocations: 1.426 MB / 282.1 MB, free: 8.035 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.762320090085268]