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.001262/0.001262, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001428/0.001428, allocations: 161 kB / 24.56 MB, free: 16 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 0.9767/0.9767, 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.462e-06/1.462e-06, allocations: 0 / 272.9 MB, free: 1.578 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.641e-05/1.787e-05, allocations: 2.312 kB / 272.9 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00285/0.002868, allocations: 2.12 MB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009988/0.003867, allocations: 0.5258 MB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.00401, allocations: 7.938 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.004162, allocations: 19.8 kB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.843e-05/0.00424, allocations: 27.78 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.004564, allocations: 55.8 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.004772, allocations: 135.4 kB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.004951, allocations: 37.98 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.005081, allocations: 79.73 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.099e-05/0.005162, allocations: 35.89 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.005193, allocations: 12 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.743e-05/0.005211, allocations: 8 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.83e-05/0.005239, allocations: 35.91 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.562e-05/0.005285, allocations: 43.84 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.005474, allocations: 83.7 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.005475, allocations: 0 / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005476, allocations: 0 / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.005481, allocations: 0 / 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.0004607/0.005942, allocations: 460 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.276e-05/0.006035, allocations: 8.031 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.006087, allocations: 28.84 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.006263, allocations: 156.4 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.006275, allocations: 12.38 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.006312, allocations: 16.33 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003399/0.006652, allocations: 220.8 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.006664, allocations: 192 / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.006678, allocations: 8.375 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/0.006688, allocations: 7.938 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.204e-05/0.00676, allocations: 42.44 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008097/0.00757, allocations: 0.6407 MB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.007786, allocations: 137.3 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.822e-05/0.007844, allocations: 55.14 kB / 277.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.007869, allocations: 7.984 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.007889, allocations: 33.39 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.007891, allocations: 0 / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002215/0.008112, allocations: 121.5 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.008174, allocations: 122.7 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.00826, allocations: 192.8 kB / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.008273, allocations: 29.7 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.058e-05/0.008333, allocations: 158.8 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.008349, allocations: 23.78 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.008381, allocations: 31.38 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.008505, allocations: 0.4961 MB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.524e-05/0.00853, allocations: 11.98 kB / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.835e-05/0.008588, allocations: 93.11 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.778e-05/0.008676, allocations: 105.5 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.008679, allocations: 4 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001057/0.008785, allocations: 109.5 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.008798, allocations: 4 kB / 279.4 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.008804, allocations: 4 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.008818, allocations: 240 / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.589e-05/0.008894, allocations: 31.98 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.008902, allocations: 3.938 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.446e-05/0.008936, allocations: 15.92 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.008942, 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 7.232e-05/0.009014, allocations: 160.6 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.009124, allocations: 93.61 kB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.295e-05/0.009157, allocations: 20.77 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.00916, allocations: 4 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.009164, allocations: 0 / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.009167, allocations: 0 / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.009312, allocations: 152.5 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.009314, allocations: 4 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.009426, allocations: 43.91 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.009428, allocations: 0 / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.009445, allocations: 4 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.009449, allocations: 11.98 kB / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.00945, allocations: 0 / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.009731, allocations: 418.5 kB / 280.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.713e-05/0.009748, allocations: 15.91 kB / 280.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.009766, allocations: 7.984 kB / 280.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.348e-05/0.00983, allocations: 4 kB / 280.4 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.009871, allocations: 0 / 280.4 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.009877, allocations: 11.98 kB / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.992e-05/0.009937, allocations: 146.3 kB / 280.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.009938, allocations: 0 / 280.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001814/0.01012, allocations: 27.91 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 7.132e-05/0.01019, allocations: 103.2 kB / 280.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001324/0.01032, allocations: 71.53 kB / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01032, allocations: 3.938 kB / 280.8 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.863e-05/0.01035, allocations: 23.61 kB / 280.8 MB, free: 9.234 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.0107, allocations: 68.31 kB / 280.9 MB, free: 9.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007243/0.01142, allocations: 374.6 kB / 281.2 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.946e-05/0.01147, allocations: 71.34 kB / 281.3 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.556e-05/0.01149, allocations: 8.969 kB / 281.3 MB, free: 8.668 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/0.01153, allocations: 12.5 kB / 281.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01153, allocations: 4 kB / 281.3 MB, free: 8.648 MB / 266.7 MB Notification: Performance of Templates: time 0.003142/0.01467, allocations: 1.337 MB / 282.7 MB, free: 7.371 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.954693380743265]