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.00169/0.00169, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001222/0.001222, allocations: 172.3 kB / 24.82 MB, free: 9.273 MB / 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 0.9721/0.9721, allocations: 177.1 MB / 205.3 MB, free: 5.52 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.974e-06/1.974e-06, allocations: 3.938 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.498e-05, allocations: 4.562 kB / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003441/0.003466, allocations: 2.093 MB / 275.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009372/0.004403, allocations: 0.5258 MB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.004531, allocations: 7.938 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.004658, allocations: 19.73 kB / 276 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.194e-05/0.00474, allocations: 27.73 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.005024, allocations: 55.86 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.005219, allocations: 135.4 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.005364, allocations: 37.97 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.005496, allocations: 71.88 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.325e-05/0.005589, allocations: 39.89 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.983e-05/0.005619, allocations: 16 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.093e-05/0.00564, allocations: 11.94 kB / 276.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.561e-05/0.005675, allocations: 23.91 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.009e-05/0.005725, allocations: 43.91 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.005917, allocations: 91.58 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.005919, allocations: 0 / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.00592, allocations: 0 / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.005924, allocations: 0 / 276.6 MB, free: 14.12 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.0005112/0.006435, allocations: 460 kB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.006483, allocations: 8.031 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.158e-05/0.006534, allocations: 32.84 kB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.006734, allocations: 156.4 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.00675, allocations: 12.38 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.006782, allocations: 20.31 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.007108, allocations: 196.8 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.007122, allocations: 8.125 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.007134, allocations: 8.375 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.007144, allocations: 7.938 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.028e-05/0.007215, allocations: 35 kB / 277.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007618/0.007977, allocations: 0.6406 MB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.008203, allocations: 145.3 kB / 278.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.829e-05/0.008261, allocations: 51.12 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.008286, allocations: 8 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.008317, allocations: 41.33 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.008319, allocations: 0 / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002476/0.008567, allocations: 109.5 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.008632, allocations: 110.8 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.008752, allocations: 197.1 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.008768, allocations: 29.69 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.619e-05/0.008844, allocations: 158.8 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.008864, allocations: 27.78 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.008908, allocations: 31.36 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.009056, allocations: 0.4963 MB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.372e-05/0.00908, allocations: 7.984 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.787e-05/0.009147, allocations: 93.09 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.009248, allocations: 101.4 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.00925, allocations: 0 / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001426/0.009393, allocations: 105.4 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.009409, allocations: 8 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.009415, allocations: 0 / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.009429, allocations: 4 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.298e-05/0.009522, allocations: 27.92 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.009527, allocations: 4 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.043e-05/0.009588, allocations: 15.92 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.009595, allocations: 4.219 kB / 279.9 MB, free: 10.45 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 9.307e-05/0.009688, allocations: 164.6 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.009834, allocations: 81.53 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.009873, allocations: 24.7 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.009876, allocations: 0 / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.009879, allocations: 4 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.009883, allocations: 0 / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.01008, allocations: 129.1 kB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.01008, allocations: 4 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.01023, allocations: 43.91 kB / 280.3 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.01024, allocations: 4 kB / 280.3 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.01025, allocations: 4 kB / 280.3 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.01025, allocations: 4 kB / 280.3 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.01026, allocations: 0 / 280.3 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.01049, allocations: 354.6 kB / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.021e-05/0.01051, allocations: 16.17 kB / 280.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.01052, allocations: 4 kB / 280.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.01064, allocations: 4 kB / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.01067, allocations: 11.97 kB / 280.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.01068, allocations: 4 kB / 280.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.124e-05/0.01074, allocations: 143.2 kB / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01074, allocations: 0 / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003288/0.01107, allocations: 31.89 kB / 280.9 MB, free: 9.367 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 0.0001/0.01117, allocations: 107.2 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001416/0.01131, allocations: 63.52 kB / 281 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01131, allocations: 0 / 281 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.983e-05/0.01134, allocations: 20.06 kB / 281.1 MB, free: 9.164 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004711/0.01182, allocations: 62.7 kB / 281.1 MB, free: 9.105 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008424/0.01266, allocations: 370.7 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.768e-05/0.01272, allocations: 75.33 kB / 281.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.916e-05/0.01275, allocations: 8.984 kB / 281.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.346e-05/0.01284, allocations: 86.19 kB / 281.7 MB, free: 8.52 MB / 266.7 MB Notification: Performance of SimCode: time 6.42e-07/0.01284, allocations: 0 / 281.7 MB, free: 8.52 MB / 266.7 MB Notification: Performance of Templates: time 0.003999/0.01684, allocations: 1.435 MB / 283.1 MB, free: 7.141 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.751702828332782]