Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0009624/0.0009624, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.0009384/0.0009384, allocations: 145.6 kB / 24.89 MB, free: 9.164 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 1.007/1.007, allocations: 173.4 MB / 201.5 MB, free: 9.211 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.ClockedWithDiscretizedContinuousController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 268.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.541e-05, allocations: 2.312 kB / 268.5 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002346/0.002361, allocations: 2.139 MB / 270.6 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006683/0.00303, allocations: 0.5062 MB / 271.1 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.491e-05/0.003115, allocations: 7.938 kB / 271.1 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.041e-05/0.003205, allocations: 15.8 kB / 271.2 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.567e-05/0.003261, allocations: 35.72 kB / 271.2 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.003457, allocations: 55.86 kB / 271.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.003596, allocations: 131.4 kB / 271.4 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.999e-05/0.003696, allocations: 46.58 kB / 271.4 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.312e-05/0.003789, allocations: 75.8 kB / 271.5 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.177e-05/0.003861, allocations: 39.88 kB / 271.5 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.003888, allocations: 12 kB / 271.5 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.589e-05/0.003904, allocations: 12 kB / 271.6 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.463e-05/0.003928, allocations: 19.92 kB / 271.6 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.603e-05/0.003964, allocations: 47.84 kB / 271.6 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.004098, allocations: 95.58 kB / 271.7 MB, free: 2.934 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.442e-06/0.0041, allocations: 0 / 271.7 MB, free: 2.934 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.004101, allocations: 4 kB / 271.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.004105, allocations: 0 / 271.7 MB, free: 2.93 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0003269/0.004432, allocations: 320.4 kB / 272 MB, free: 2.594 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.004469, allocations: 12.92 kB / 272 MB, free: 2.582 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.004505, allocations: 20.92 kB / 272.1 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.004671, allocations: 141.5 kB / 272.2 MB, free: 2.398 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.004682, allocations: 16.38 kB / 272.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.004703, allocations: 12.38 kB / 272.2 MB, free: 2.371 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.004923, allocations: 203.8 kB / 272.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.004933, allocations: 192 / 272.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.004943, allocations: 8.359 kB / 272.4 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.004951, allocations: 7.938 kB / 272.5 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.596e-05/0.004997, allocations: 31.92 kB / 272.5 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.005359, allocations: 454 kB / 272.9 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.005508, allocations: 99.69 kB / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.092e-05/0.005549, allocations: 50.58 kB / 273.1 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.005565, allocations: 0 / 273.1 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.005584, allocations: 34.56 kB / 273.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.005585, allocations: 0 / 273.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001553/0.00574, allocations: 97.47 kB / 273.2 MB, free: 1.289 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.005792, allocations: 126.9 kB / 273.3 MB, free: 1.141 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.496e-05/0.005857, allocations: 134.6 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.005867, allocations: 29.7 kB / 273.5 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.00591, allocations: 112 kB / 273.6 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.005927, allocations: 27.77 kB / 273.6 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.005954, allocations: 21.72 kB / 273.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.006024, allocations: 326.8 kB / 274 MB, free: 476 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.335e-05/0.006037, allocations: 8 kB / 274 MB, free: 468 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.231e-05/0.00608, allocations: 71.64 kB / 274 MB, free: 368 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.465e-05/0.006144, allocations: 78.72 kB / 274.1 MB, free: 264 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.006147, allocations: 4 kB / 274.1 MB, free: 260 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.508e-05/0.006232, allocations: 85.53 kB / 274.2 MB, free: 168 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.006243, allocations: 8.219 kB / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.006248, allocations: 4 kB / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.006261, allocations: 0 / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.165e-05/0.006352, allocations: 35.44 kB / 274.3 MB, free: 124 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.006363, allocations: 7.984 kB / 274.3 MB, free: 116 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.513e-05/0.006398, allocations: 11.94 kB / 274.3 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.006404, allocations: 4 kB / 274.3 MB, free: 100 kB / 250.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.375e-05/0.006478, allocations: 117.8 kB / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.769e-05/0.006565, allocations: 65.61 kB / 274.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.477e-05/0.00659, allocations: 24.77 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.006592, allocations: 4 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.006594, allocations: 0 / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.006598, allocations: 4 kB / 274.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.006717, allocations: 97.69 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.006718, allocations: 0 / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.006852, allocations: 39.97 kB / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.006856, allocations: 4.234 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.006867, allocations: 4 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.006869, allocations: 4 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.00687, allocations: 4 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001241/0.006994, allocations: 247.5 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.364e-05/0.007008, allocations: 15.89 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.007021, allocations: 7.938 kB / 274.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.103e-05/0.007082, allocations: 4 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.441e-05/0.007106, allocations: 7.984 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.007112, allocations: 4 kB / 274.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.15e-05/0.007133, allocations: 31.75 kB / 274.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007133, allocations: 0 / 274.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001601/0.007294, allocations: 23.94 kB / 275 MB, free: 15.35 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 0.0001003/0.007394, allocations: 92.33 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.007498, allocations: 56.7 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.007503, allocations: 4 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.00752, allocations: 12.86 kB / 275.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.007779, allocations: 55.09 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005744/0.008353, allocations: 351.5 kB / 275.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.102e-05/0.008394, allocations: 75.33 kB / 275.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.556e-05/0.008419, allocations: 9.172 kB / 275.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.131e-05/0.008481, allocations: 67.36 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.008481, allocations: 0 / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Templates: time 0.002933/0.01141, allocations: 1.421 MB / 277.1 MB, free: 13.21 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.580469757784158]