Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001083/0.001083, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001574/0.002657, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001168/0.001168, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001364/0.002532, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9177/0.9177, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08126/0.999, allocations: 52.5 MB / 238.3 MB, free: 4.422 MB / 234.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.ClockedWithDiscreteController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.819e-05, allocations: 2.312 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002289/0.002307, allocations: 2.086 MB / 241.6 MB, free: 1.094 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006483/0.002955, allocations: 0.5335 MB / 242.1 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.247e-05/0.003038, allocations: 0 / 242.1 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.812e-05/0.003096, allocations: 23.73 kB / 242.2 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.676e-05/0.003173, allocations: 27.66 kB / 242.2 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.003344, allocations: 59.86 kB / 242.3 MB, free: 456 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.003471, allocations: 123.5 kB / 242.4 MB, free: 332 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.003573, allocations: 46.14 kB / 242.4 MB, free: 280 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.003685, allocations: 87.73 kB / 242.5 MB, free: 192 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.828e-05/0.003753, allocations: 43.88 kB / 242.6 MB, free: 148 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.003776, allocations: 8 kB / 242.6 MB, free: 140 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.003791, allocations: 12 kB / 242.6 MB, free: 128 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.565e-05/0.003816, allocations: 19.94 kB / 242.6 MB, free: 108 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.003853, allocations: 31.88 kB / 242.6 MB, free: 76 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.003986, allocations: 75.69 kB / 242.7 MB, free: 0 / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.003996, allocations: 4.047 kB / 242.7 MB, free: 15.99 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.003997, allocations: 4 kB / 242.7 MB, free: 15.99 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.004008, allocations: 0 / 242.7 MB, free: 15.99 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.0003848/0.004393, allocations: 355.9 kB / 243.1 MB, free: 15.62 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.712e-05/0.00442, allocations: 12.03 kB / 243.1 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.004453, allocations: 20.92 kB / 243.1 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.00459, allocations: 141.6 kB / 243.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.004602, allocations: 16.3 kB / 243.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.004628, allocations: 12.38 kB / 243.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/0.004858, allocations: 219.6 kB / 243.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.00487, allocations: 4.188 kB / 243.5 MB, free: 15.15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.004878, allocations: 384 / 243.5 MB, free: 15.15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.004884, allocations: 7.938 kB / 243.5 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.182e-05/0.004936, allocations: 39.84 kB / 243.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003467/0.005282, allocations: 442 kB / 243.9 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.005439, allocations: 111.7 kB / 244.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.81e-05/0.005477, allocations: 42.66 kB / 244.1 MB, free: 14.45 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.005497, allocations: 8.125 kB / 244.1 MB, free: 14.44 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.005516, allocations: 42.55 kB / 244.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.005517, allocations: 0 / 244.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001527/0.00567, allocations: 93.53 kB / 244.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.005718, allocations: 111 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.013e-05/0.005778, allocations: 134.2 kB / 244.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.005791, allocations: 33.7 kB / 244.5 MB, free: 13.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.799e-05/0.005829, allocations: 112 kB / 244.6 MB, free: 13.87 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.005846, allocations: 27.78 kB / 244.6 MB, free: 13.84 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.005876, allocations: 25.7 kB / 244.7 MB, free: 13.81 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.821e-05/0.005945, allocations: 322.8 kB / 245 MB, free: 13.48 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.256e-05/0.005957, allocations: 11.94 kB / 245 MB, free: 13.47 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.783e-05/0.005995, allocations: 70.72 kB / 245.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.937e-05/0.006054, allocations: 74.78 kB / 245.1 MB, free: 13.28 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006056, allocations: 0 / 245.1 MB, free: 13.28 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.194e-05/0.006138, allocations: 89.47 kB / 245.2 MB, free: 13.19 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.006149, allocations: 4 kB / 245.2 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.006153, allocations: 0 / 245.2 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.006161, allocations: 4 kB / 245.2 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.00628, allocations: 36.14 kB / 245.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.006284, allocations: 4 kB / 245.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.642e-05/0.006321, allocations: 16.16 kB / 245.3 MB, free: 13.12 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.006327, allocations: 4 kB / 245.3 MB, free: 13.12 MB / 250.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.132e-05/0.006388, allocations: 117.8 kB / 245.4 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.357e-05/0.006452, allocations: 57.67 kB / 245.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.677e-05/0.006488, allocations: 20.77 kB / 245.5 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.006492, allocations: 4 kB / 245.5 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.006493, allocations: 0 / 245.5 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.006496, allocations: 0 / 245.5 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.006626, allocations: 109.7 kB / 245.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.006628, allocations: 0 / 245.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.006765, allocations: 39.92 kB / 245.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.006778, allocations: 11.94 kB / 245.6 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.00678, allocations: 0 / 245.6 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.006792, allocations: 8 kB / 245.7 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.006794, allocations: 0 / 245.7 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.006795, allocations: 0 / 245.7 MB, free: 12.73 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.006935, allocations: 247.5 kB / 245.9 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.00695, allocations: 4 kB / 245.9 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.201e-05/0.007012, allocations: 8.031 kB / 245.9 MB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.007037, allocations: 7.984 kB / 245.9 MB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.007042, allocations: 7.938 kB / 245.9 MB, free: 12.44 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.193e-05/0.007064, allocations: 24.78 kB / 246 MB, free: 12.41 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007064, allocations: 0 / 246 MB, free: 12.41 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002436/0.007308, allocations: 20 kB / 246 MB, free: 12.39 MB / 250.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 9.146e-05/0.007399, allocations: 92.34 kB / 246.1 MB, free: 12.29 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.007517, allocations: 60.95 kB / 246.1 MB, free: 12.23 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.007524, allocations: 0 / 246.1 MB, free: 12.23 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.452e-05/0.007548, allocations: 16.8 kB / 246.1 MB, free: 12.21 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.007877, allocations: 58.27 kB / 246.2 MB, free: 12.16 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.009565, allocations: 304.1 kB / 246.5 MB, free: 11.83 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.531e-05/0.00962, allocations: 75.33 kB / 246.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.751e-05/0.009658, allocations: 4.984 kB / 246.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.009728, allocations: 75.34 kB / 246.6 MB, free: 11.65 MB / 250.7 MB Notification: Performance of SimCode: time 8.82e-07/0.009729, allocations: 0 / 246.6 MB, free: 11.65 MB / 250.7 MB Notification: Performance of Templates: time 0.003292/0.01302, allocations: 1.314 MB / 248 MB, free: 10.37 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4188886219635606]