Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009325/0.0009325, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008352/0.0008352, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.009/1.009, allocations: 173.4 MB / 201.1 MB, free: 9.352 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.325e-05, allocations: 2.312 kB / 268 MB, free: 6.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002725/0.002749, allocations: 2.076 MB / 270 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008416/0.00359, allocations: 0.5608 MB / 270.6 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.003715, allocations: 4 kB / 270.6 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.00383, allocations: 15.8 kB / 270.6 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.004006, allocations: 39.66 kB / 270.7 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.004255, allocations: 75.67 kB / 270.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.004416, allocations: 123.5 kB / 270.9 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.004544, allocations: 46.09 kB / 270.9 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.004648, allocations: 75.8 kB / 271 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.365e-05/0.004722, allocations: 39.89 kB / 271 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.004748, allocations: 12 kB / 271 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.609e-05/0.004764, allocations: 8 kB / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.634e-05/0.004821, allocations: 35.84 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.59e-05/0.004867, allocations: 43.91 kB / 271.1 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.005036, allocations: 111.5 kB / 271.2 MB, free: 3.199 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.005039, allocations: 0 / 271.2 MB, free: 3.199 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.00504, allocations: 0 / 271.2 MB, free: 3.199 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.005044, allocations: 0 / 271.2 MB, free: 3.199 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004613/0.005506, allocations: 467.9 kB / 271.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.005545, allocations: 12.92 kB / 271.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.434e-05/0.005629, allocations: 24.84 kB / 271.7 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.005821, allocations: 185.8 kB / 271.9 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.005832, allocations: 8.375 kB / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.00586, allocations: 12.38 kB / 271.9 MB, free: 2.445 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.006205, allocations: 252.4 kB / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.006215, allocations: 192 / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.006229, allocations: 4.375 kB / 272.2 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.006237, allocations: 11.94 kB / 272.2 MB, free: 2.152 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.173e-05/0.006309, allocations: 43.89 kB / 272.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005012/0.00681, allocations: 0.6445 MB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.007034, allocations: 137.2 kB / 273 MB, free: 1.238 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.19e-05/0.007096, allocations: 63.25 kB / 273.1 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.007115, allocations: 4 kB / 273.1 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.007138, allocations: 37.39 kB / 273.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.123e-06/0.007139, allocations: 0 / 273.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000236/0.007375, allocations: 137.4 kB / 273.2 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.007428, allocations: 110.8 kB / 273.3 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.00753, allocations: 205.9 kB / 273.5 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.007542, allocations: 29.7 kB / 273.6 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.007602, allocations: 163.3 kB / 273.7 MB, free: 432 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.007621, allocations: 23.78 kB / 273.8 MB, free: 408 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.007653, allocations: 31.38 kB / 273.8 MB, free: 368 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.007766, allocations: 0.4961 MB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.488e-05/0.00779, allocations: 7.984 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.725e-05/0.007838, allocations: 81.44 kB / 274.4 MB, free: 15.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.609e-05/0.007914, allocations: 113.5 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.007916, allocations: 0 / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001084/0.008024, allocations: 105.7 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.008037, allocations: 4 kB / 274.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.008042, allocations: 4 kB / 274.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.008054, allocations: 4 kB / 274.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.833e-05/0.008123, allocations: 27.92 kB / 274.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.008128, allocations: 0 / 274.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.736e-05/0.008165, allocations: 16.12 kB / 274.6 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.008173, allocations: 7.984 kB / 274.6 MB, free: 15.41 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.505e-05/0.008248, allocations: 172.5 kB / 274.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-05/0.008335, allocations: 81.91 kB / 274.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.008381, allocations: 24.8 kB / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.008384, allocations: 4 kB / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.00839, allocations: 7.984 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.008394, allocations: 4 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.008542, allocations: 148.5 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.008544, allocations: 4 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.523e-05/0.008639, allocations: 31.97 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.008642, allocations: 7.938 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.008657, allocations: 4 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.008659, allocations: 0 / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.008662, allocations: 8 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.008896, allocations: 418.5 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.558e-05/0.008931, allocations: 23.89 kB / 275.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.008948, allocations: 8 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.059e-05/0.009009, allocations: 3.984 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/0.009038, allocations: 4 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.009046, allocations: 8 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.415e-05/0.0091, allocations: 156.6 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0091, allocations: 0 / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001906/0.009291, allocations: 31.83 kB / 275.8 MB, free: 14.21 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 7.778e-05/0.009368, allocations: 115.2 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.009495, allocations: 63.53 kB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.009496, allocations: 0 / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.00952, allocations: 19.69 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.00986, allocations: 51.03 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006536/0.01051, allocations: 380 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.685e-05/0.01056, allocations: 75.33 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.985e-05/0.01059, allocations: 8.641 kB / 276.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.01062, allocations: 12.5 kB / 276.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01062, allocations: 0 / 276.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of Templates: time 0.003099/0.01372, allocations: 1.458 MB / 277.9 MB, free: 12.03 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.9343515620566905]