Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001708/0.001708, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001244/0.001244, allocations: 167.6 kB / 25.61 MB, free: 8.902 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.9235/0.9235, allocations: 177.1 MB / 206 MB, free: 4.5 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 274.2 MB, free: 4.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.773e-05/2.987e-05, allocations: 2.312 kB / 274.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003886/0.003916, allocations: 2.043 MB / 276.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.00503, allocations: 0.5596 MB / 276.8 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.00516, allocations: 4.625 kB / 276.8 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.005285, allocations: 13.78 kB / 276.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.005443, allocations: 27.72 kB / 276.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.005704, allocations: 63.8 kB / 276.9 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.005895, allocations: 123.5 kB / 277 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.006037, allocations: 34.23 kB / 277 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.006164, allocations: 79.8 kB / 277.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.413e-05/0.006258, allocations: 44.97 kB / 277.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.006289, allocations: 12 kB / 277.2 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.007e-05/0.006309, allocations: 8 kB / 277.2 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.304e-05/0.006342, allocations: 29.22 kB / 277.2 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.319e-05/0.006395, allocations: 35.92 kB / 277.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.006578, allocations: 95.58 kB / 277.3 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.00658, allocations: 4 kB / 277.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.006581, allocations: 0 / 277.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.006586, allocations: 0 / 277.3 MB, free: 1.293 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005102/0.007096, allocations: 456.1 kB / 277.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.00713, allocations: 8.031 kB / 277.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/0.007189, allocations: 24.84 kB / 277.8 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.007383, allocations: 152.4 kB / 278 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.007397, allocations: 12.38 kB / 278 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.007432, allocations: 20.31 kB / 278 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.007766, allocations: 228.3 kB / 278.2 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.007778, allocations: 192 / 278.2 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.007791, allocations: 4.375 kB / 278.2 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.007802, allocations: 7.938 kB / 278.2 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.435e-05/0.007876, allocations: 35.84 kB / 278.3 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005719/0.008448, allocations: 0.6368 MB / 278.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.008675, allocations: 133.3 kB / 279 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.524e-05/0.008741, allocations: 55.12 kB / 279.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.008761, allocations: 11.92 kB / 279.1 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.008789, allocations: 33.39 kB / 279.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.933e-06/0.008791, allocations: 4 kB / 279.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002578/0.009049, allocations: 113.5 kB / 279.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.009118, allocations: 110.8 kB / 279.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.009226, allocations: 185.9 kB / 279.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.009239, allocations: 29.83 kB / 279.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.253e-05/0.009311, allocations: 162.8 kB / 279.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.009334, allocations: 19.8 kB / 279.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.009527, allocations: 39.34 kB / 279.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.009663, allocations: 0.4922 MB / 280.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.348e-05/0.009686, allocations: 8 kB / 280.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.332e-05/0.009749, allocations: 81.41 kB / 280.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.862e-05/0.009848, allocations: 101.6 kB / 280.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.009851, allocations: 0 / 280.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001462/0.009997, allocations: 97.44 kB / 280.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.01002, allocations: 8 kB / 280.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.01002, allocations: 0 / 280.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.01003, allocations: 4.219 kB / 280.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.873e-05/0.01013, allocations: 35.86 kB / 280.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.01014, allocations: 7.984 kB / 280.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.093e-05/0.0102, allocations: 15.83 kB / 280.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-06/0.01021, allocations: 8 kB / 280.6 MB, free: 13.64 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 8.752e-05/0.01029, allocations: 164.5 kB / 280.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.01042, allocations: 73.95 kB / 280.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.572e-05/0.01047, allocations: 20.7 kB / 280.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.01048, allocations: 4 kB / 280.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.01048, allocations: 0 / 280.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.01048, allocations: 4 kB / 280.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.01069, allocations: 129.1 kB / 281 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.0107, allocations: 0 / 281 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.01084, allocations: 43.97 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.01084, allocations: 0 / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.01085, allocations: 0 / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01085, allocations: 4 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01086, allocations: 0 / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002186/0.01108, allocations: 346.6 kB / 281.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.956e-05/0.01109, allocations: 15.89 kB / 281.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.01112, allocations: 8.016 kB / 281.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.01123, allocations: 8 kB / 281.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/0.01126, allocations: 3.984 kB / 281.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.01127, allocations: 4 kB / 281.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.746e-05/0.01132, allocations: 146.1 kB / 281.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01132, allocations: 0 / 281.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003109/0.01163, allocations: 23.95 kB / 281.6 MB, free: 12.59 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 8.304e-05/0.01172, allocations: 103.2 kB / 281.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.01182, allocations: 67.53 kB / 281.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01182, allocations: 0 / 281.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.125e-05/0.01185, allocations: 23.61 kB / 281.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.01216, allocations: 47.03 kB / 281.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005555/0.01272, allocations: 351.2 kB / 282.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.434e-05/0.01276, allocations: 79.33 kB / 282.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.646e-05/0.01279, allocations: 4.984 kB / 282.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.651e-05/0.01285, allocations: 90.19 kB / 282.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01286, allocations: 0 / 282.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Templates: time 0.003326/0.01618, allocations: 1.333 MB / 283.7 MB, free: 10.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.6710939491167665]