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.00136/0.00136, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0008988/0.0008988, allocations: 152 kB / 24.8 MB, free: 8.941 MB / 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 0.9637/0.9637, allocations: 173.4 MB / 201.4 MB, free: 9.219 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.153e-06/1.153e-06, allocations: 3.938 kB / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103e-05/1.218e-05, allocations: 2.312 kB / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00284/0.002852, allocations: 2.062 MB / 270.4 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008345/0.003687, allocations: 0.5569 MB / 271 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/0.003784, allocations: 7.938 kB / 271 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.285e-05/0.003867, allocations: 15.8 kB / 271 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.003999, allocations: 47.62 kB / 271.1 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001998/0.004199, allocations: 71.69 kB / 271.1 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.004347, allocations: 131.5 kB / 271.3 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.341e-05/0.004441, allocations: 38.11 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.888e-05/0.00454, allocations: 71.81 kB / 271.4 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.53e-05/0.004605, allocations: 43.88 kB / 271.4 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.004626, allocations: 12 kB / 271.4 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.909e-05/0.004645, allocations: 12 kB / 271.4 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.247e-05/0.004687, allocations: 35.83 kB / 271.5 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.004728, allocations: 43.91 kB / 271.5 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.004871, allocations: 99.58 kB / 271.6 MB, free: 2.965 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-06/0.004873, allocations: 4 kB / 271.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004873, allocations: 0 / 271.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.004876, allocations: 0 / 271.6 MB, free: 2.961 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.0004212/0.005297, allocations: 487.8 kB / 272.1 MB, free: 2.449 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.005329, allocations: 8.922 kB / 272.1 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.279e-05/0.005372, allocations: 28.84 kB / 272.1 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.005569, allocations: 160.3 kB / 272.3 MB, free: 2.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.005586, allocations: 12.36 kB / 272.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.005612, allocations: 20.38 kB / 272.3 MB, free: 2.199 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004842/0.006097, allocations: 228.3 kB / 272.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.006108, allocations: 192 / 272.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.006121, allocations: 8.375 kB / 272.6 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.006128, allocations: 7.875 kB / 272.6 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.608e-05/0.006194, allocations: 31.97 kB / 272.6 MB, free: 1.898 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004085/0.006603, allocations: 0.66 MB / 273.3 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.006754, allocations: 137.3 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.16e-05/0.006796, allocations: 47.14 kB / 273.4 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.006815, allocations: 4 kB / 273.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.006834, allocations: 41.33 kB / 273.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 9.22e-07/0.006835, allocations: 0 / 273.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001764/0.007012, allocations: 125.4 kB / 273.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.00706, allocations: 114.9 kB / 273.7 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.216e-05/0.007152, allocations: 213.8 kB / 273.9 MB, free: 416 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.007163, allocations: 25.7 kB / 273.9 MB, free: 384 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.718e-05/0.00722, allocations: 163.3 kB / 274.1 MB, free: 216 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.007235, allocations: 19.78 kB / 274.1 MB, free: 196 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/0.007269, allocations: 39.36 kB / 274.2 MB, free: 148 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.007391, allocations: 0.4923 MB / 274.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.576e-05/0.007406, allocations: 15.92 kB / 274.7 MB, free: 15.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.226e-05/0.007449, allocations: 73.48 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.491e-05/0.007513, allocations: 109.3 kB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.007515, allocations: 0 / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.599e-05/0.007611, allocations: 97.44 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.007622, allocations: 8.219 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.007625, allocations: 4 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.007637, allocations: 4 kB / 275 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.469e-05/0.007702, allocations: 27.92 kB / 275 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.007706, allocations: 4 kB / 275 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.706e-05/0.007743, allocations: 15.88 kB / 275 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.00775, allocations: 8 kB / 275 MB, free: 15.21 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.399e-05/0.007824, allocations: 164.5 kB / 275.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.637e-05/0.007901, allocations: 77.53 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.954e-05/0.00795, allocations: 24.77 kB / 275.3 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.007952, allocations: 4 kB / 275.3 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.007957, allocations: 8 kB / 275.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.007961, allocations: 0 / 275.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.008109, allocations: 129.1 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.00811, allocations: 0 / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.053e-05/0.0082, allocations: 35.92 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.008202, allocations: 0 / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.008213, allocations: 4 kB / 275.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.008214, allocations: 0 / 275.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.008216, allocations: 0 / 275.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001726/0.008388, allocations: 358.6 kB / 275.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.008426, allocations: 27.83 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.008441, allocations: 8.234 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.054e-05/0.008501, allocations: 0 / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.563e-05/0.008527, allocations: 11.98 kB / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.008533, allocations: 11.92 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.438e-05/0.008587, allocations: 152.6 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008587, allocations: 0 / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001893/0.008777, allocations: 24 kB / 276 MB, free: 14.12 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.89e-05/0.008846, allocations: 103.3 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.406e-05/0.00894, allocations: 63.45 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-06/0.008941, allocations: 0 / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.34e-05/0.008964, allocations: 27.61 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.009255, allocations: 43.11 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.009792, allocations: 382.9 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.831e-05/0.00984, allocations: 75.33 kB / 276.7 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.592e-05/0.009866, allocations: 4.656 kB / 276.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.794e-05/0.009934, allocations: 90.19 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.009935, allocations: 0 / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of Templates: time 0.002947/0.01288, allocations: 1.487 MB / 278.3 MB, free: 11.85 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.7410966819152236]