Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001074/0.001074, allocations: 84.34 kB / 22.22 MB, free: 2.281 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.001234/0.001234, allocations: 164 kB / 25.61 MB, free: 8.855 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.999/0.999, allocations: 177 MB / 205.9 MB, free: 4.426 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.054e-05, allocations: 6.312 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002369/0.00239, allocations: 2.047 MB / 276.1 MB, free: 2.227 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006978/0.003088, allocations: 0.5244 MB / 276.7 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.638e-05/0.003174, allocations: 4 kB / 276.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.003275, allocations: 19.8 kB / 276.7 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.55e-05/0.00333, allocations: 24.67 kB / 276.7 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.003563, allocations: 56.42 kB / 276.8 MB, free: 1.598 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.003702, allocations: 127.5 kB / 276.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.003827, allocations: 38.58 kB / 276.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.00393, allocations: 71.8 kB / 277 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.515e-05/0.004005, allocations: 43.88 kB / 277 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.004027, allocations: 13.41 kB / 277.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.004041, allocations: 8 kB / 277.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/0.004073, allocations: 23.91 kB / 277.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.673e-05/0.00411, allocations: 36.67 kB / 277.1 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.004255, allocations: 95.58 kB / 277.2 MB, free: 1.145 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.004258, allocations: 1.844 kB / 277.2 MB, free: 1.145 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.004259, allocations: 0 / 277.2 MB, free: 1.145 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.004263, allocations: 0 / 277.2 MB, free: 1.145 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0003909/0.004654, allocations: 448.1 kB / 277.7 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.004685, allocations: 12.72 kB / 277.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.004722, allocations: 24.84 kB / 277.7 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.004873, allocations: 159.4 kB / 277.9 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.004882, allocations: 8.375 kB / 277.9 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.004906, allocations: 16.36 kB / 277.9 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.005145, allocations: 217.5 kB / 278.1 MB, free: 192 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.005155, allocations: 4.172 kB / 278.1 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.005166, allocations: 12.38 kB / 278.1 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.005174, allocations: 7.938 kB / 278.1 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.722e-05/0.005221, allocations: 31.91 kB / 278.1 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/0.005643, allocations: 0.6329 MB / 278.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.005774, allocations: 133.4 kB / 278.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.301e-05/0.005817, allocations: 47.12 kB / 279 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.005838, allocations: 8 kB / 279 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.00586, allocations: 41.33 kB / 279 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.005861, allocations: 4 kB / 279 MB, free: 15.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001855/0.006047, allocations: 109.4 kB / 279.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.006098, allocations: 110.8 kB / 279.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.8e-05/0.006176, allocations: 192 kB / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.388e-06/0.006185, allocations: 25.7 kB / 279.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.006248, allocations: 162.6 kB / 279.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.006266, allocations: 23.84 kB / 279.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.0063, allocations: 31.36 kB / 279.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.006418, allocations: 0.4961 MB / 280.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.528e-05/0.006434, allocations: 4 kB / 280.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.124e-05/0.006485, allocations: 85.61 kB / 280.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.698e-05/0.006562, allocations: 97.34 kB / 280.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.006565, allocations: 4 kB / 280.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001065/0.006672, allocations: 101.6 kB / 280.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.006684, allocations: 4 kB / 280.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.006688, allocations: 48 / 280.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.586e-06/0.006697, allocations: 11.81 kB / 280.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.792e-05/0.006785, allocations: 27.92 kB / 280.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.006789, allocations: 4 kB / 280.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.112e-05/0.00683, allocations: 23.83 kB / 280.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.006837, allocations: 4 kB / 280.5 MB, free: 13.51 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 7.841e-05/0.006915, allocations: 164.8 kB / 280.7 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/0.006996, allocations: 73.58 kB / 280.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.007028, allocations: 20.77 kB / 280.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.00703, allocations: 0 / 280.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.007033, allocations: 4 kB / 280.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.007037, allocations: 0 / 280.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.007171, allocations: 121.1 kB / 280.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.007174, allocations: 4 kB / 280.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.497e-05/0.007269, allocations: 39.91 kB / 280.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.00727, allocations: 0 / 280.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.007283, allocations: 4 kB / 280.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.007284, allocations: 4 kB / 280.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.007285, allocations: 0 / 280.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.007451, allocations: 346.6 kB / 281.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.225e-05/0.007463, allocations: 7.953 kB / 281.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.007479, allocations: 11.98 kB / 281.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.055e-05/0.007539, allocations: 4 kB / 281.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.007566, allocations: 3.984 kB / 281.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.007571, allocations: 4 kB / 281.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.716e-05/0.007618, allocations: 146 kB / 281.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007619, allocations: 0 / 281.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002009/0.007819, allocations: 27.98 kB / 281.5 MB, free: 12.48 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 (14): * Single equations (assignments): 14 * 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 8.071e-05/0.0079, allocations: 103.2 kB / 281.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.008004, allocations: 67.47 kB / 281.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.008005, allocations: 0 / 281.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.199e-05/0.008027, allocations: 19.62 kB / 281.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.008349, allocations: 43.31 kB / 281.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005674/0.008917, allocations: 349.2 kB / 282 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.289e-05/0.00896, allocations: 75.28 kB / 282.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.946e-05/0.008989, allocations: 12.42 kB / 282.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.171e-05/0.009051, allocations: 78.2 kB / 282.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.009052, allocations: 4 kB / 282.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of Templates: time 0.003/0.01205, allocations: 1.307 MB / 283.5 MB, free: 10.43 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.89359044469893]