Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008997/0.0008997, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009828/0.0009828, allocations: 161.5 kB / 25.61 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8721/0.8721, allocations: 177.1 MB / 206 MB, free: 4.523 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 274.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.256e-05/1.4e-05, allocations: 2.312 kB / 274.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002402/0.002416, allocations: 2.071 MB / 276.2 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007287/0.003144, allocations: 0.5961 MB / 276.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.013e-05/0.003235, allocations: 0 / 276.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.825e-05/0.003333, allocations: 19.8 kB / 276.8 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.003477, allocations: 31.72 kB / 276.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001922/0.00367, allocations: 72.31 kB / 276.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.003805, allocations: 139.4 kB / 277.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.981e-05/0.003905, allocations: 38.11 kB / 277.1 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.171e-05/0.003997, allocations: 75.86 kB / 277.2 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.99e-05/0.004067, allocations: 47.81 kB / 277.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.004087, allocations: 8 kB / 277.3 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.518e-05/0.004102, allocations: 12 kB / 277.3 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.955e-05/0.004151, allocations: 31.91 kB / 277.3 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.855e-05/0.00419, allocations: 39.84 kB / 277.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.004333, allocations: 107.5 kB / 277.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.004334, allocations: 0 / 277.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.004336, allocations: 4 kB / 277.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.00434, allocations: 4 kB / 277.4 MB, free: 1.164 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.0004277/0.004767, allocations: 479.9 kB / 277.9 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.004797, allocations: 8.031 kB / 277.9 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.004837, allocations: 28.84 kB / 278 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.00498, allocations: 168.2 kB / 278.1 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.669e-06/0.00499, allocations: 8.375 kB / 278.1 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.005012, allocations: 16.38 kB / 278.1 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.005244, allocations: 232.7 kB / 278.4 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.005254, allocations: 4.188 kB / 278.4 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.005264, allocations: 4.375 kB / 278.4 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.00527, allocations: 7.938 kB / 278.4 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.726e-05/0.005317, allocations: 34.72 kB / 278.4 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000397/0.005714, allocations: 0.6485 MB / 279.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001605/0.005875, allocations: 133.1 kB / 279.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.152e-05/0.005916, allocations: 51.31 kB / 279.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.00593, allocations: 7.938 kB / 279.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.005949, allocations: 41.39 kB / 279.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.005951, allocations: 0 / 279.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001777/0.006128, allocations: 117.4 kB / 279.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.006175, allocations: 110.8 kB / 279.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.006263, allocations: 206.5 kB / 279.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.006274, allocations: 33.83 kB / 279.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.006329, allocations: 163.3 kB / 279.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.006346, allocations: 27.78 kB / 279.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.006378, allocations: 31.36 kB / 280 MB, free: 14.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.006482, allocations: 0.4922 MB / 280.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.603e-05/0.006498, allocations: 11.98 kB / 280.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.667e-05/0.006544, allocations: 93.34 kB / 280.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.784e-05/0.006612, allocations: 93.44 kB / 280.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.006614, allocations: 3.938 kB / 280.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.233e-05/0.006706, allocations: 93.5 kB / 280.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.006717, allocations: 8 kB / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.006721, allocations: 0 / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/0.006729, allocations: 4.219 kB / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.08e-05/0.00679, allocations: 31.92 kB / 280.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.466e-06/0.006794, allocations: 4 kB / 280.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.591e-05/0.006829, allocations: 19.83 kB / 280.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.006836, allocations: 7.984 kB / 280.8 MB, free: 13.43 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.692e-05/0.006903, allocations: 168.5 kB / 281 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.602e-05/0.006979, allocations: 81.53 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.91e-05/0.007019, allocations: 16.78 kB / 281.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.007021, allocations: 4 kB / 281.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.007023, allocations: 0 / 281.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.007027, allocations: 7.984 kB / 281.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.007151, allocations: 125.1 kB / 281.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.007152, allocations: 0 / 281.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.091e-05/0.007233, allocations: 35.97 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.007235, allocations: 0 / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.007247, allocations: 12 kB / 281.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.007248, allocations: 0 / 281.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.007249, allocations: 0 / 281.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.007398, allocations: 351.3 kB / 281.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.812e-05/0.007436, allocations: 35.8 kB / 281.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.007449, allocations: 8.031 kB / 281.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.58e-05/0.007515, allocations: 8 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.007538, allocations: 3.984 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.007543, allocations: 4 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.153e-05/0.007595, allocations: 153.3 kB / 281.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007595, allocations: 0 / 281.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001782/0.007773, allocations: 24 kB / 281.8 MB, free: 12.34 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.258e-05/0.007836, allocations: 99.19 kB / 281.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.323e-05/0.007929, allocations: 71.53 kB / 282 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.92e-07/0.00793, allocations: 3.938 kB / 282 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.943e-05/0.007949, allocations: 15.69 kB / 282 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.008247, allocations: 66.08 kB / 282.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000619/0.008866, allocations: 371.9 kB / 282.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.253e-05/0.008908, allocations: 79.33 kB / 282.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.719e-05/0.008935, allocations: 8.641 kB / 282.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.46e-05/0.009, allocations: 86.19 kB / 282.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.009001, allocations: 0 / 282.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of Templates: time 0.002789/0.01179, allocations: 1.498 MB / 284.1 MB, free: 10.06 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6068236459977925]