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.0009644/0.0009644, allocations: 78.28 kB / 21.42 MB, free: 3.078 MB / 18.57 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.0009395/0.0009395, allocations: 150.3 kB / 24.81 MB, free: 9.285 MB / 18.57 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.9453/0.9453, allocations: 173.3 MB / 201.4 MB, free: 9.199 MB / 186.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.223e-06/1.223e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.624e-05/1.746e-05, allocations: 2.312 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002238/0.002256, allocations: 2.05 MB / 270.4 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000665/0.002921, allocations: 0.5141 MB / 270.9 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.452e-05/0.003015, allocations: 7.938 kB / 271 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.242e-05/0.003108, allocations: 15.8 kB / 271 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.003224, allocations: 31.72 kB / 271 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.003389, allocations: 51.81 kB / 271.1 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.003511, allocations: 135.5 kB / 271.2 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.003616, allocations: 33.61 kB / 271.2 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.962e-05/0.003706, allocations: 75.81 kB / 271.3 MB, free: 3.273 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.276e-05/0.003769, allocations: 39.88 kB / 271.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.003789, allocations: 12 kB / 271.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.498e-05/0.003804, allocations: 12 kB / 271.4 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.00383, allocations: 27.91 kB / 271.4 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.238e-05/0.003862, allocations: 39.84 kB / 271.4 MB, free: 3.145 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.003993, allocations: 95.58 kB / 271.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.185e-06/0.003996, allocations: 3.938 kB / 271.5 MB, free: 3.047 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.003996, allocations: 0 / 271.5 MB, free: 3.047 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.004, allocations: 4 kB / 271.5 MB, free: 3.043 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.0003638/0.004364, allocations: 448.1 kB / 272 MB, free: 2.57 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.004395, allocations: 12.92 kB / 272 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.004434, allocations: 28.84 kB / 272 MB, free: 2.531 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.004563, allocations: 144.4 kB / 272.1 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.004572, allocations: 8.375 kB / 272.1 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/0.004594, allocations: 12.38 kB / 272.2 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.004829, allocations: 232.7 kB / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.004838, allocations: 8.188 kB / 272.4 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.004848, allocations: 4.375 kB / 272.4 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.004853, allocations: 7.938 kB / 272.4 MB, free: 2.062 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.122e-05/0.004904, allocations: 35.84 kB / 272.4 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.005283, allocations: 0.6405 MB / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.00545, allocations: 133.3 kB / 273.2 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.066e-05/0.00549, allocations: 51.14 kB / 273.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.005512, allocations: 8 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.005534, allocations: 45.31 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.005536, allocations: 0 / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001839/0.00572, allocations: 105.8 kB / 273.4 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.005772, allocations: 118.7 kB / 273.5 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.00585, allocations: 189.2 kB / 273.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.005863, allocations: 29.7 kB / 273.7 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.005923, allocations: 162.8 kB / 273.9 MB, free: 400 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.00594, allocations: 23.78 kB / 273.9 MB, free: 376 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.005973, allocations: 27.36 kB / 274 MB, free: 340 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.006098, allocations: 0.4963 MB / 274.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.662e-05/0.006115, allocations: 11.98 kB / 274.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.515e-05/0.00616, allocations: 85.41 kB / 274.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.954e-05/0.00623, allocations: 101.3 kB / 274.6 MB, free: 15.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.006232, allocations: 0 / 274.6 MB, free: 15.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.41e-05/0.006326, allocations: 101.4 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.006337, allocations: 8 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.006341, allocations: 0 / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.006352, allocations: 4 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.148e-05/0.006413, allocations: 31.92 kB / 274.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.006416, allocations: 0 / 274.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.422e-05/0.00645, allocations: 19.88 kB / 274.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.006456, allocations: 4.219 kB / 274.8 MB, free: 15.39 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.563e-05/0.006522, allocations: 168.5 kB / 275 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.152e-05/0.006593, allocations: 73.58 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.485e-05/0.006638, allocations: 16.78 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.006641, allocations: 4 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.006643, allocations: 0 / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.006646, allocations: 3.984 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.006768, allocations: 125.1 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.00677, allocations: 4 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.518e-05/0.006855, allocations: 31.92 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.006858, allocations: 8 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.00687, allocations: 7.984 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.006872, allocations: 4 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.006873, allocations: 0 / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/0.007033, allocations: 346.6 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.479e-05/0.007047, allocations: 15.89 kB / 275.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.00706, allocations: 4 kB / 275.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.068e-05/0.007121, allocations: 11.98 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.316e-05/0.007144, allocations: 0 / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.00715, allocations: 7.984 kB / 275.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.778e-05/0.007188, allocations: 135.2 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007188, allocations: 0 / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001793/0.007367, allocations: 27.95 kB / 275.8 MB, free: 14.35 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.304e-05/0.00744, allocations: 103.2 kB / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.208e-05/0.007532, allocations: 63.45 kB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.007537, allocations: 8 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.907e-05/0.007556, allocations: 16.06 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.007854, allocations: 53.97 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.008399, allocations: 346.8 kB / 276.4 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.642e-05/0.008446, allocations: 75.34 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.926e-05/0.008475, allocations: 12.97 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.821e-05/0.008543, allocations: 86.19 kB / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008544, allocations: 0 / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of Templates: time 0.002886/0.01143, allocations: 1.286 MB / 277.8 MB, free: 12.27 MB / 266.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 -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.752020976971835]