Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.0009266/0.0009266, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008919/0.0008919, allocations: 145.5 kB / 24.54 MB, free: 36 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 0.9996/0.9996, allocations: 173.4 MB / 201.1 MB, free: 8.977 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 268 MB, free: 6.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.616e-05/1.764e-05, allocations: 5.969 kB / 268 MB, free: 6.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002257/0.002275, allocations: 2.043 MB / 270 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006807/0.002955, allocations: 0.4986 MB / 270.5 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.47e-05/0.00304, allocations: 4 kB / 270.5 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.003156, allocations: 15.8 kB / 270.5 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.942e-05/0.003216, allocations: 31.72 kB / 270.6 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.003471, allocations: 63.8 kB / 270.6 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.003611, allocations: 115.5 kB / 270.7 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.00374, allocations: 41.59 kB / 270.8 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.981e-05/0.00384, allocations: 71.81 kB / 270.9 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.205e-05/0.003912, allocations: 39.88 kB / 270.9 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.003938, allocations: 12 kB / 270.9 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.003952, allocations: 8 kB / 270.9 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.003977, allocations: 23.92 kB / 270.9 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.215e-05/0.004019, allocations: 43.91 kB / 271 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.004167, allocations: 95.58 kB / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.004169, allocations: 0 / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.00417, allocations: 0 / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.004174, allocations: 0 / 271.1 MB, free: 3.188 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004477/0.004621, allocations: 440.1 kB / 271.5 MB, free: 2.723 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.004659, allocations: 12.92 kB / 271.5 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.204e-05/0.004711, allocations: 24.84 kB / 271.5 MB, free: 2.688 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.004874, allocations: 148.4 kB / 271.7 MB, free: 2.516 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.004886, allocations: 12.38 kB / 271.7 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.004913, allocations: 12.38 kB / 271.7 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.005237, allocations: 236.8 kB / 271.9 MB, free: 2.227 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.005249, allocations: 192 / 271.9 MB, free: 2.227 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.005262, allocations: 4.375 kB / 271.9 MB, free: 2.223 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.005271, allocations: 7.938 kB / 271.9 MB, free: 2.215 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.991e-05/0.005351, allocations: 47.84 kB / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004512/0.005802, allocations: 0.6251 MB / 272.6 MB, free: 1.488 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.005954, allocations: 141.3 kB / 272.8 MB, free: 1.312 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.828e-05/0.006012, allocations: 55.14 kB / 272.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.006032, allocations: 4 kB / 272.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.006052, allocations: 37.33 kB / 272.9 MB, free: 1.195 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.006053, allocations: 4 kB / 272.9 MB, free: 1.191 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002236/0.006277, allocations: 125.4 kB / 273 MB, free: 1.062 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.006333, allocations: 114.8 kB / 273.1 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.037e-05/0.006414, allocations: 181.9 kB / 273.3 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.006426, allocations: 29.7 kB / 273.3 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.996e-05/0.006485, allocations: 162.8 kB / 273.5 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.006503, allocations: 19.78 kB / 273.5 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.006536, allocations: 31.38 kB / 273.5 MB, free: 484 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.006653, allocations: 0.4961 MB / 274 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.23e-05/0.006676, allocations: 7.984 kB / 274 MB, free: 15.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.134e-05/0.006727, allocations: 89.42 kB / 274.1 MB, free: 15.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.868e-05/0.006806, allocations: 109.5 kB / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006808, allocations: 0 / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001041/0.006912, allocations: 97.81 kB / 274.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.006924, allocations: 12.03 kB / 274.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.006929, allocations: 0 / 274.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.006944, allocations: 8.031 kB / 274.3 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.466e-05/0.007038, allocations: 31.92 kB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.007046, allocations: 7.984 kB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.613e-05/0.007082, allocations: 19.83 kB / 274.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.00709, allocations: 7.984 kB / 274.4 MB, free: 15.51 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.902e-05/0.007159, allocations: 160.6 kB / 274.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.007243, allocations: 85.89 kB / 274.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.007273, allocations: 16.78 kB / 274.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.007277, allocations: 4 kB / 274.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.007281, allocations: 3.938 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.007284, allocations: 0 / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.007421, allocations: 144.5 kB / 274.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.007424, allocations: 4 kB / 274.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.626e-05/0.00751, allocations: 35.91 kB / 274.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.007513, allocations: 0 / 274.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.00753, allocations: 8 kB / 274.8 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.007531, allocations: 0 / 274.8 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.007532, allocations: 0 / 274.8 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.007757, allocations: 410.6 kB / 275.2 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.316e-05/0.00777, allocations: 11.89 kB / 275.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.007787, allocations: 8 kB / 275.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.622e-05/0.007844, allocations: 3.984 kB / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.345e-05/0.007877, allocations: 4 kB / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.007883, allocations: 8 kB / 275.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.435e-05/0.007928, allocations: 142.4 kB / 275.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007928, allocations: 0 / 275.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001886/0.008116, allocations: 27.89 kB / 275.4 MB, free: 14.38 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 (14): * Single equations (assignments): 14 * 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.748e-05/0.008184, allocations: 107.3 kB / 275.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001269/0.008311, allocations: 63.53 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.008312, allocations: 0 / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.343e-05/0.008336, allocations: 19.62 kB / 275.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.008648, allocations: 45.7 kB / 275.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.00926, allocations: 355 kB / 276 MB, free: 13.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.714e-05/0.009307, allocations: 71.33 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.435e-05/0.009331, allocations: 4.5 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.455e-05/0.009366, allocations: 20.48 kB / 276.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of SimCode: time 9.41e-07/0.009367, allocations: 0 / 276.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of Templates: time 0.003061/0.01243, allocations: 1.228 MB / 277.3 MB, free: 12.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.868282149080187]