Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 75.77 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 161 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.007/1.007, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 272.9 MB, free: 1.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.961e-05, allocations: 6.312 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002246/0.002266, allocations: 2.12 MB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.002979, allocations: 0.5258 MB / 275.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.888e-05/0.003068, allocations: 7.938 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.92e-05/0.003167, allocations: 15.8 kB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.814e-05/0.003225, allocations: 23.73 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.003451, allocations: 55.81 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.003593, allocations: 139.5 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.003712, allocations: 41.97 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.459e-05/0.003807, allocations: 75.75 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.969e-05/0.003876, allocations: 35.89 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.003901, allocations: 12 kB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.479e-05/0.003916, allocations: 12 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.003941, allocations: 27.91 kB / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.653e-05/0.003978, allocations: 39.84 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001316/0.004109, allocations: 91.64 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.004111, allocations: 0 / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.7e-07/0.004112, allocations: 3.938 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.004115, allocations: 4 kB / 276.2 MB, free: 14.34 MB / 266.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.0004042/0.004519, allocations: 456 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.004551, allocations: 12.03 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.126e-05/0.004603, allocations: 24.84 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.00476, allocations: 152.4 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.004771, allocations: 12.38 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.004798, allocations: 20.33 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.005096, allocations: 212.9 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.005106, allocations: 192 / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.005119, allocations: 8.375 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.005126, allocations: 3.938 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.733e-05/0.005193, allocations: 42.72 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004487/0.005642, allocations: 0.6406 MB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.005833, allocations: 149.3 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.155e-05/0.005885, allocations: 51.14 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.005903, allocations: 4 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.005924, allocations: 41.39 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 9.51e-07/0.005925, allocations: 0 / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002028/0.006128, allocations: 121.5 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.006179, allocations: 114.7 kB / 278.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.526e-05/0.006264, allocations: 201.1 kB / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.006275, allocations: 29.7 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.006332, allocations: 163 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.006347, allocations: 23.8 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.006379, allocations: 31.36 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.006479, allocations: 0.4922 MB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.232e-05/0.006501, allocations: 12 kB / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.505e-05/0.006556, allocations: 93.11 kB / 279.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.122e-05/0.006638, allocations: 105.4 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.00664, allocations: 4 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001014/0.006742, allocations: 109.6 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.006752, allocations: 4 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.006757, allocations: 4 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.006768, allocations: 8.031 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.492e-05/0.006833, allocations: 32.14 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.006838, allocations: 0 / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.425e-05/0.006872, allocations: 15.94 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.006879, allocations: 4 kB / 279.5 MB, free: 10.62 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.536e-05/0.006944, allocations: 160.6 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.864e-05/0.007043, allocations: 89.52 kB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.007067, allocations: 16.78 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.00707, allocations: 4 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.007075, allocations: 0 / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.007079, allocations: 3.984 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.007221, allocations: 156.5 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.007222, allocations: 0 / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.007326, allocations: 47.91 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.007328, allocations: 0 / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.007342, allocations: 0 / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.007343, allocations: 4 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.007344, allocations: 0 / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.007585, allocations: 430.5 kB / 280.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.212e-05/0.007598, allocations: 15.84 kB / 280.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.007611, allocations: 32 / 280.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.814e-05/0.007669, allocations: 12 kB / 280.4 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.0077, allocations: 7.984 kB / 280.4 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.007704, allocations: 4 kB / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.789e-05/0.007752, allocations: 143.2 kB / 280.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007752, allocations: 0 / 280.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001815/0.007934, allocations: 27.88 kB / 280.6 MB, free: 9.449 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 6.601e-05/0.008, allocations: 107.2 kB / 280.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.008122, allocations: 71.78 kB / 280.8 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.008123, allocations: 0 / 280.8 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.171e-05/0.008145, allocations: 19.62 kB / 280.8 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.008459, allocations: 63.7 kB / 280.9 MB, free: 9.176 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006455/0.009104, allocations: 374.9 kB / 281.2 MB, free: 8.773 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.39e-05/0.009148, allocations: 75.33 kB / 281.3 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.433e-05/0.009172, allocations: 4.984 kB / 281.3 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.127e-05/0.009204, allocations: 16.48 kB / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.009204, allocations: 0 / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of Templates: time 0.002927/0.01213, allocations: 1.411 MB / 282.7 MB, free: 7.312 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.770539472810924]