Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001084/0.001084, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.0009626/0.0009626, allocations: 141.1 kB / 24.54 MB, free: 28 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.033/1.033, allocations: 173.3 MB / 201.1 MB, free: 9.332 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.913e-05/2.059e-05, allocations: 2.312 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00637/0.00639, allocations: 2.062 MB / 270 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.007877, allocations: 0.5142 MB / 270.5 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.007982, allocations: 7.938 kB / 270.5 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.008105, allocations: 15.8 kB / 270.6 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.00826, allocations: 35.7 kB / 270.6 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.008478, allocations: 51.81 kB / 270.6 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.008658, allocations: 135.5 kB / 270.8 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.008793, allocations: 29.62 kB / 270.8 MB, free: 3.586 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.008912, allocations: 83.8 kB / 270.9 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.635e-05/0.008998, allocations: 39.88 kB / 270.9 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.00903, allocations: 8 kB / 270.9 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.009049, allocations: 12 kB / 270.9 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.692e-05/0.009086, allocations: 27.91 kB / 271 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.507e-05/0.009141, allocations: 43.84 kB / 271 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.009315, allocations: 91.58 kB / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.009318, allocations: 0 / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.00932, allocations: 4 kB / 271.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.009324, allocations: 3.938 kB / 271.1 MB, free: 3.277 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005349/0.009859, allocations: 448.1 kB / 271.6 MB, free: 2.805 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.009898, allocations: 12.92 kB / 271.6 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.00996, allocations: 24.84 kB / 271.6 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.01017, allocations: 148.4 kB / 271.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.01018, allocations: 8.375 kB / 271.7 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/0.01022, allocations: 12.38 kB / 271.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004397/0.01066, allocations: 244.8 kB / 272 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.01067, allocations: 192 / 272 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.01069, allocations: 12.36 kB / 272 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.0107, allocations: 3.938 kB / 272 MB, free: 2.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.0108, allocations: 43.91 kB / 272.1 MB, free: 2.246 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006144/0.01142, allocations: 0.6367 MB / 272.7 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/0.01168, allocations: 137.3 kB / 272.8 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.097e-05/0.01176, allocations: 63.14 kB / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.01178, allocations: 0 / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.01181, allocations: 45.38 kB / 272.9 MB, free: 1.254 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.01181, allocations: 0 / 272.9 MB, free: 1.254 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003063/0.01212, allocations: 117.8 kB / 273 MB, free: 1.133 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.01219, allocations: 118.8 kB / 273.2 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.0123, allocations: 189.9 kB / 273.3 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.01231, allocations: 25.7 kB / 273.4 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.01238, allocations: 158.8 kB / 273.5 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.417e-05/0.01241, allocations: 23.8 kB / 273.6 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.01245, allocations: 39.48 kB / 273.6 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.01259, allocations: 0.4922 MB / 274.1 MB, free: 24 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.934e-05/0.01262, allocations: 7.984 kB / 274.1 MB, free: 16 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.864e-05/0.01271, allocations: 85.42 kB / 274.2 MB, free: 15.9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.01282, allocations: 101.5 kB / 274.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.01283, allocations: 4 kB / 274.3 MB, free: 15.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000169/0.01299, allocations: 105.4 kB / 274.4 MB, free: 15.65 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.01301, allocations: 4 kB / 274.4 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.01302, allocations: 4 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.01303, allocations: 4 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.624e-05/0.01313, allocations: 23.98 kB / 274.4 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.01314, allocations: 7.922 kB / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.0132, allocations: 24.11 kB / 274.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.01321, allocations: 4 kB / 274.4 MB, free: 15.58 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 8.983e-05/0.0133, allocations: 164.5 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.01343, allocations: 85.52 kB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.93e-05/0.01348, allocations: 20.77 kB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.01348, allocations: 0 / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.01349, allocations: 4 kB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.01349, allocations: 0 / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.01371, allocations: 148.5 kB / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01371, allocations: 0 / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.01386, allocations: 39.92 kB / 274.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.01386, allocations: 0 / 274.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.01388, allocations: 4 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.01388, allocations: 7.984 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01388, allocations: 0 / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003321/0.01421, allocations: 417 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.88e-05/0.01423, allocations: 15.91 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.01425, allocations: 4 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.01436, allocations: 4 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.01439, allocations: 7.984 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.0144, allocations: 8.031 kB / 275.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.31e-05/0.01446, allocations: 143.1 kB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01446, allocations: 0 / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003373/0.0148, allocations: 23.94 kB / 275.5 MB, free: 14.44 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 8.566e-05/0.01489, allocations: 111.2 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.01504, allocations: 59.53 kB / 275.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.01504, allocations: 7.938 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.285e-05/0.01507, allocations: 24.06 kB / 275.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.01555, allocations: 43.11 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007737/0.01632, allocations: 354.8 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.071e-05/0.01639, allocations: 79.33 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.777e-05/0.01642, allocations: 12.97 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.01646, allocations: 12.5 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01646, allocations: 0 / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of Templates: time 0.00382/0.02028, allocations: 1.253 MB / 277.5 MB, free: 12.44 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.8772726212628186]