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.001333/0.001333, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009454/0.0009454, allocations: 138.1 kB / 24.97 MB, free: 8.359 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.9399/0.9399, allocations: 173.4 MB / 201.5 MB, free: 9.328 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 2.324e-06/2.324e-06, allocations: 0 / 268 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.625e-05/3.857e-05, allocations: 6.25 kB / 268 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003682/0.003721, allocations: 2.073 MB / 270.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.00478, allocations: 0.553 MB / 270.7 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.004917, allocations: 11.94 kB / 270.7 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.00505, allocations: 15.8 kB / 270.7 MB, free: 4.078 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.005248, allocations: 39.66 kB / 270.7 MB, free: 4.039 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002934/0.005542, allocations: 63.8 kB / 270.8 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.005745, allocations: 135.4 kB / 270.9 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.005901, allocations: 42.09 kB / 271 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.006035, allocations: 75.86 kB / 271 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.818e-05/0.006123, allocations: 43.81 kB / 271.1 MB, free: 3.68 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.006157, allocations: 12 kB / 271.1 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.983e-05/0.006177, allocations: 12 kB / 271.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/0.006243, allocations: 35.84 kB / 271.1 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.617e-05/0.006299, allocations: 35.92 kB / 271.2 MB, free: 3.586 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.006518, allocations: 107.6 kB / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.006522, allocations: 0 / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006523, allocations: 0 / 271.3 MB, free: 3.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.006528, allocations: 0 / 271.3 MB, free: 3.48 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.0006159/0.007144, allocations: 479.8 kB / 271.8 MB, free: 2.977 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.00719, allocations: 12.92 kB / 271.8 MB, free: 2.965 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.147e-05/0.007262, allocations: 24.84 kB / 271.8 MB, free: 2.941 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.007509, allocations: 177.9 kB / 272 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.007527, allocations: 8.375 kB / 272 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.007562, allocations: 12.38 kB / 272 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005112/0.008073, allocations: 244.8 kB / 272.2 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.008087, allocations: 4.188 kB / 272.2 MB, free: 2.445 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.0081, allocations: 4.375 kB / 272.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.008111, allocations: 7.938 kB / 272.2 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.294e-05/0.008194, allocations: 43.89 kB / 272.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.008769, allocations: 0.6484 MB / 272.9 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.009003, allocations: 137.3 kB / 273.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.376e-05/0.009067, allocations: 55.14 kB / 273.1 MB, free: 1.449 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.009091, allocations: 7.984 kB / 273.1 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.009115, allocations: 41.33 kB / 273.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.254e-06/0.009117, allocations: 4 kB / 273.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002549/0.009372, allocations: 129.4 kB / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.009431, allocations: 114.8 kB / 273.4 MB, free: 1.117 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.009542, allocations: 205.9 kB / 273.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.009555, allocations: 29.7 kB / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.009627, allocations: 163.3 kB / 273.8 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.009646, allocations: 27.78 kB / 273.8 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.009684, allocations: 27.38 kB / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.009798, allocations: 0.4961 MB / 274.4 MB, free: 132 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.429e-05/0.009822, allocations: 11.94 kB / 274.4 MB, free: 120 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.259e-05/0.009874, allocations: 85.61 kB / 274.4 MB, free: 0 / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.524e-05/0.00997, allocations: 105.4 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.009973, allocations: 0 / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001174/0.01009, allocations: 109.4 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.0101, allocations: 4 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.01011, allocations: 4 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.01012, allocations: 4 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.765e-05/0.0102, allocations: 27.92 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.01021, allocations: 0 / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.885e-05/0.01025, allocations: 15.89 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.01026, allocations: 8 kB / 274.7 MB, free: 15.69 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.8e-05/0.01034, allocations: 172.7 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.618e-05/0.01043, allocations: 81.53 kB / 275 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.956e-05/0.01049, allocations: 17.02 kB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.01049, allocations: 4 kB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.0105, allocations: 7.984 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.01051, allocations: 7.984 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.01068, allocations: 156.5 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01068, allocations: 0 / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.696e-05/0.01077, allocations: 31.92 kB / 275.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.01078, allocations: 7.984 kB / 275.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.01079, allocations: 4 kB / 275.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.0108, allocations: 4 kB / 275.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0108, allocations: 4 kB / 275.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.01105, allocations: 421 kB / 275.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.01109, allocations: 23.89 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.01111, allocations: 8 kB / 275.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.248e-05/0.01117, allocations: 7.984 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.01121, allocations: 4 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.01122, allocations: 4 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.5e-05/0.01128, allocations: 160.6 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01128, allocations: 3.938 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002035/0.01149, allocations: 31.86 kB / 275.9 MB, free: 14.48 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 9.606e-05/0.01158, allocations: 103.2 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.01171, allocations: 67.53 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01171, allocations: 0 / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.723e-05/0.01174, allocations: 23.61 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/0.01213, allocations: 51.59 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007386/0.01287, allocations: 375.5 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.923e-05/0.01292, allocations: 75.33 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.048e-05/0.01295, allocations: 8.641 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.01298, allocations: 20.5 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.01298, allocations: 0 / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of Templates: time 0.002992/0.01597, allocations: 1.371 MB / 277.9 MB, free: 12.38 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.7539416239596903]