Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001915/0.001915, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.002242/0.002242, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.477/1.477, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.738e-05/3.928e-05, allocations: 2.312 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.006328/0.006367, allocations: 1.971 MB / 269.3 MB, free: 4.766 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.007556, allocations: 494.6 kB / 269.7 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.007681, allocations: 7.938 kB / 269.8 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.007811, allocations: 15.8 kB / 269.8 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.659e-05/0.007897, allocations: 23.78 kB / 269.8 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.008207, allocations: 59.8 kB / 269.9 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.00841, allocations: 119.5 kB / 270 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.008561, allocations: 48.91 kB / 270 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.008693, allocations: 71.75 kB / 270.1 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.899e-05/0.008782, allocations: 43.88 kB / 270.1 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.008809, allocations: 12 kB / 270.1 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.207e-05/0.008831, allocations: 12 kB / 270.2 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.878e-05/0.00887, allocations: 23.92 kB / 270.2 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.008928, allocations: 35.91 kB / 270.2 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.009153, allocations: 131.5 kB / 270.3 MB, free: 3.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.009156, allocations: 0 / 270.3 MB, free: 3.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.009157, allocations: 0 / 270.3 MB, free: 3.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.009162, allocations: 0 / 270.3 MB, free: 3.68 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006689/0.009831, allocations: 357.7 kB / 270.7 MB, free: 3.301 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.009864, allocations: 8.922 kB / 270.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.029e-05/0.009935, allocations: 32.84 kB / 270.7 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.0102, allocations: 137.6 kB / 270.9 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.01021, allocations: 12.38 kB / 270.9 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.01025, allocations: 12.38 kB / 270.9 MB, free: 3.078 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.01079, allocations: 243.1 kB / 271.1 MB, free: 2.816 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.0108, allocations: 8.125 kB / 271.1 MB, free: 2.809 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.01082, allocations: 8.375 kB / 271.1 MB, free: 2.801 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.01083, allocations: 3.938 kB / 271.1 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.0111, allocations: 87.88 kB / 271.2 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.01176, allocations: 492.6 kB / 271.7 MB, free: 2.184 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.01206, allocations: 135.9 kB / 271.8 MB, free: 2.023 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.01224, allocations: 78.62 kB / 271.9 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.01227, allocations: 4 kB / 271.9 MB, free: 1.934 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.0123, allocations: 30.56 kB / 272 MB, free: 1.895 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.0123, allocations: 0 / 272 MB, free: 1.895 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005613/0.01286, allocations: 181.4 kB / 272.1 MB, free: 1.711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.902e-05/0.01296, allocations: 114.8 kB / 272.2 MB, free: 1.574 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.01309, allocations: 134.2 kB / 272.4 MB, free: 1.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.01312, allocations: 29.7 kB / 272.4 MB, free: 1.395 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.983e-05/0.01322, allocations: 112.1 kB / 272.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.01325, allocations: 27.78 kB / 272.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.0133, allocations: 25.72 kB / 272.6 MB, free: 1.223 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.01347, allocations: 318.8 kB / 272.9 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.01358, allocations: 27.98 kB / 272.9 MB, free: 0.875 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.01375, allocations: 86.77 kB / 273 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.014, allocations: 114.7 kB / 273.1 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01401, allocations: 0 / 273.1 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003284/0.01433, allocations: 141.4 kB / 273.2 MB, free: 496 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.01435, allocations: 8 kB / 273.3 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.01436, allocations: 0 / 273.3 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.01438, allocations: 7.984 kB / 273.3 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.01453, allocations: 27.98 kB / 273.3 MB, free: 452 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.01454, allocations: 7.938 kB / 273.3 MB, free: 444 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.837e-05/0.01463, allocations: 23.81 kB / 273.3 MB, free: 420 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.01464, allocations: 4.219 kB / 273.3 MB, free: 416 kB / 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 0.000115/0.01476, allocations: 125.8 kB / 273.4 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.01492, allocations: 89.95 kB / 273.5 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.598e-05/0.01496, allocations: 16.78 kB / 273.5 MB, free: 168 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01496, allocations: 0 / 273.5 MB, free: 168 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.01497, allocations: 0 / 273.5 MB, free: 168 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.01497, allocations: 4.234 kB / 273.6 MB, free: 164 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.01525, allocations: 141.2 kB / 273.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.01525, allocations: 4 kB / 273.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.01543, allocations: 31.97 kB / 273.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.01544, allocations: 11.94 kB / 273.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.01545, allocations: 0 / 273.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.01545, allocations: 4 kB / 273.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01545, allocations: 0 / 273.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006108/0.01606, allocations: 387.4 kB / 274.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.142e-05/0.01608, allocations: 11.89 kB / 274.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.0161, allocations: 0 / 274.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.01625, allocations: 11.98 kB / 274.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.01629, allocations: 12 kB / 274.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.0163, allocations: 4 kB / 274.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.25e-05/0.01639, allocations: 103.2 kB / 274.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01639, allocations: 0 / 274.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000312/0.0167, allocations: 31.89 kB / 274.3 MB, free: 15.38 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 (14): * Single equations (assignments): 14 * 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.0001206/0.01682, allocations: 95.25 kB / 274.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003317/0.01715, allocations: 96.19 kB / 274.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01715, allocations: 0 / 274.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.01725, allocations: 23.98 kB / 274.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000519/0.01777, allocations: 57.56 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007671/0.01854, allocations: 339.1 kB / 274.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.01866, allocations: 101.3 kB / 275 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.946e-05/0.0187, allocations: 4.5 kB / 275 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.01874, allocations: 12.5 kB / 275 MB, free: 14.61 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01875, allocations: 0 / 275 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Templates: time 0.004596/0.02334, allocations: 1.177 MB / 276.2 MB, free: 13.47 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.368375879013911]