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.002775/0.002775, allocations: 88.59 kB / 20.95 MB, free: 332 kB / 14.72 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.002588/0.002588, allocations: 157.9 kB / 24.25 MB, free: 3.289 MB / 14.72 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.528/1.528, allocations: 173.3 MB / 200.8 MB, free: 12.73 MB / 190.1 MB " [Timeout remaining time 178] 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.953e-06/1.953e-06, allocations: 0 / 267.3 MB, free: 10.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.687e-05/3.882e-05, allocations: 11.44 kB / 267.3 MB, free: 10.21 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00542/0.005459, allocations: 2.015 MB / 269.3 MB, free: 8.18 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.00688, allocations: 498.5 kB / 269.8 MB, free: 7.688 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.007031, allocations: 4 kB / 269.8 MB, free: 7.684 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.007185, allocations: 19.73 kB / 269.8 MB, free: 7.664 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.007304, allocations: 35.7 kB / 269.8 MB, free: 7.629 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003858/0.00769, allocations: 47.88 kB / 269.9 MB, free: 7.582 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.007989, allocations: 143.4 kB / 270 MB, free: 7.441 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.008189, allocations: 33.98 kB / 270.1 MB, free: 7.398 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.008353, allocations: 75.86 kB / 270.1 MB, free: 7.324 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.008469, allocations: 43.83 kB / 270.2 MB, free: 7.281 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.008506, allocations: 12 kB / 270.2 MB, free: 7.27 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.693e-05/0.008533, allocations: 8 kB / 270.2 MB, free: 7.262 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 4.485e-05/0.008578, allocations: 23.91 kB / 270.2 MB, free: 7.238 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 7.216e-05/0.00865, allocations: 39.91 kB / 270.3 MB, free: 7.199 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.00893, allocations: 135.4 kB / 270.4 MB, free: 7.066 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.008934, allocations: 0 / 270.4 MB, free: 7.066 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.008935, allocations: 0 / 270.4 MB, free: 7.066 MB / 254.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.00894, allocations: 4 kB / 270.4 MB, free: 7.062 MB / 254.1 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.0008293/0.009769, allocations: 357.7 kB / 270.7 MB, free: 6.684 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.009819, allocations: 8.922 kB / 270.8 MB, free: 6.676 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.69e-05/0.009906, allocations: 24.89 kB / 270.8 MB, free: 6.652 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.01028, allocations: 160.1 kB / 270.9 MB, free: 6.473 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.0103, allocations: 8.375 kB / 270.9 MB, free: 6.465 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.01035, allocations: 16.38 kB / 271 MB, free: 6.449 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007153/0.01107, allocations: 231.6 kB / 271.2 MB, free: 6.199 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.01109, allocations: 8.141 kB / 271.2 MB, free: 6.191 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.01111, allocations: 384 / 271.2 MB, free: 6.191 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.01113, allocations: 11.92 kB / 271.2 MB, free: 6.18 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003922/0.01152, allocations: 87.86 kB / 271.3 MB, free: 6.094 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000929/0.01245, allocations: 0.4927 MB / 271.8 MB, free: 5.555 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.01294, allocations: 135.9 kB / 271.9 MB, free: 5.395 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.01317, allocations: 66.64 kB / 272 MB, free: 5.32 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.01321, allocations: 7.938 kB / 272 MB, free: 5.312 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/0.01326, allocations: 42.55 kB / 272 MB, free: 5.262 MB / 254.1 MB Notification: Performance of pre-optimization done (n=14): time 2.084e-06/0.01327, allocations: 0 / 272 MB, free: 5.262 MB / 254.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007549/0.01402, allocations: 185.4 kB / 272.2 MB, free: 5.074 MB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.01414, allocations: 106.8 kB / 272.3 MB, free: 4.945 MB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.01431, allocations: 138.2 kB / 272.5 MB, free: 4.801 MB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.01434, allocations: 29.7 kB / 272.5 MB, free: 4.766 MB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.01447, allocations: 115.9 kB / 272.6 MB, free: 4.648 MB / 254.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.0145, allocations: 23.84 kB / 272.6 MB, free: 4.625 MB / 254.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.624e-05/0.01457, allocations: 21.72 kB / 272.6 MB, free: 4.598 MB / 254.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.01477, allocations: 326.8 kB / 273 MB, free: 4.27 MB / 254.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.01492, allocations: 32.09 kB / 273 MB, free: 4.238 MB / 254.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.01513, allocations: 91.64 kB / 273.1 MB, free: 4.121 MB / 254.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.01547, allocations: 114.7 kB / 273.2 MB, free: 3.984 MB / 254.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.01547, allocations: 4 kB / 273.2 MB, free: 3.98 MB / 254.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004338/0.01591, allocations: 133.5 kB / 273.3 MB, free: 3.844 MB / 254.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.01593, allocations: 6.188 kB / 273.3 MB, free: 3.84 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.01594, allocations: 7.984 kB / 273.3 MB, free: 3.832 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.01596, allocations: 4 kB / 273.3 MB, free: 3.828 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.01615, allocations: 32.14 kB / 273.4 MB, free: 3.797 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.01617, allocations: 4 kB / 273.4 MB, free: 3.793 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.0163, allocations: 23.81 kB / 273.4 MB, free: 3.77 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.01632, allocations: 4 kB / 273.4 MB, free: 3.766 MB / 254.1 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 0.0001849/0.0165, allocations: 129.7 kB / 273.5 MB, free: 3.629 MB / 254.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/0.01676, allocations: 101.9 kB / 273.6 MB, free: 3.523 MB / 254.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.01687, allocations: 16.78 kB / 273.6 MB, free: 3.508 MB / 254.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.01687, allocations: 4 kB / 273.7 MB, free: 3.504 MB / 254.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.01688, allocations: 4 kB / 273.7 MB, free: 3.5 MB / 254.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.01689, allocations: 4 kB / 273.7 MB, free: 3.496 MB / 254.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003601/0.01725, allocations: 149.1 kB / 273.8 MB, free: 3.32 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01725, allocations: 0 / 273.8 MB, free: 3.32 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.01756, allocations: 39.97 kB / 273.8 MB, free: 3.281 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.01756, allocations: 0 / 273.8 MB, free: 3.281 MB / 254.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.01758, allocations: 4 kB / 273.8 MB, free: 3.277 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.01758, allocations: 0 / 273.8 MB, free: 3.277 MB / 254.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.01758, allocations: 4 kB / 273.9 MB, free: 3.273 MB / 254.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008007/0.01838, allocations: 391.6 kB / 274.2 MB, free: 2.871 MB / 254.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.121e-05/0.01842, allocations: 15.88 kB / 274.2 MB, free: 2.855 MB / 254.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.01845, allocations: 4 kB / 274.3 MB, free: 2.852 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.01869, allocations: 11.98 kB / 274.3 MB, free: 2.84 MB / 254.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.01875, allocations: 4 kB / 274.3 MB, free: 2.836 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.01877, allocations: 7.984 kB / 274.3 MB, free: 2.828 MB / 254.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.01895, allocations: 106.2 kB / 274.4 MB, free: 2.727 MB / 254.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01895, allocations: 0 / 274.4 MB, free: 2.727 MB / 254.1 MB Notification: Performance of remove unused functions: time 0.0004107/0.01936, allocations: 27.89 kB / 274.4 MB, free: 2.699 MB / 254.1 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.0001527/0.01951, allocations: 107.2 kB / 274.5 MB, free: 2.586 MB / 254.1 MB Notification: Performance of simCode: created initialization part: time 0.0003623/0.01987, allocations: 95.75 kB / 274.6 MB, free: 2.492 MB / 254.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.01988, allocations: 4 kB / 274.6 MB, free: 2.488 MB / 254.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.01998, allocations: 27.97 kB / 274.6 MB, free: 2.461 MB / 254.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/0.02052, allocations: 59.53 kB / 274.7 MB, free: 2.402 MB / 254.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009102/0.02143, allocations: 379.3 kB / 275.1 MB, free: 2 MB / 254.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.02155, allocations: 98.27 kB / 275.2 MB, free: 1.883 MB / 254.1 MB Notification: Performance of simCode: alias equations: time 4.123e-05/0.02159, allocations: 8.969 kB / 275.2 MB, free: 1.871 MB / 254.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.258e-05/0.02165, allocations: 20.5 kB / 275.2 MB, free: 1.852 MB / 254.1 MB Notification: Performance of SimCode: time 3.5e-07/0.02165, allocations: 0 / 275.2 MB, free: 1.852 MB / 254.1 MB Notification: Performance of Templates: time 0.004945/0.02659, allocations: 1.328 MB / 276.5 MB, free: 0.5742 MB / 254.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.29598642885685]