Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001365/0.001365, allocations: 80.31 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.001927/0.001927, allocations: 162.5 kB / 25.61 MB, free: 8.461 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.8741/0.8741, allocations: 177.2 MB / 206.1 MB, free: 4.453 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.ClockedWithDiscreteTextbookController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 274.2 MB, free: 4.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.685e-05/2.873e-05, allocations: 2.312 kB / 274.2 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002827/0.002856, allocations: 2.052 MB / 276.2 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007737/0.003629, allocations: 0.5243 MB / 276.7 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.277e-05/0.003722, allocations: 4.781 kB / 276.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.59e-05/0.003818, allocations: 15.8 kB / 276.8 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.003883, allocations: 33.16 kB / 276.8 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.00411, allocations: 55.8 kB / 276.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.004239, allocations: 120.1 kB / 277 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.004341, allocations: 45.59 kB / 277 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.978e-05/0.004431, allocations: 72.45 kB / 277.1 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.414e-05/0.004495, allocations: 42.23 kB / 277.1 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.004514, allocations: 8 kB / 277.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.316e-05/0.004527, allocations: 12 kB / 277.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.337e-05/0.004551, allocations: 19.92 kB / 277.2 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.019e-05/0.004591, allocations: 47.83 kB / 277.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.004719, allocations: 83.66 kB / 277.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.004722, allocations: 0 / 277.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.004723, allocations: 1.375 kB / 277.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.004727, allocations: 4 kB / 277.3 MB, free: 1.379 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.0003508/0.005078, allocations: 449 kB / 277.7 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.659e-05/0.005104, allocations: 8.031 kB / 277.7 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/0.005141, allocations: 24.84 kB / 277.8 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.005277, allocations: 148.4 kB / 277.9 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.005287, allocations: 16.31 kB / 277.9 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.005309, allocations: 16.36 kB / 277.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.005536, allocations: 220.2 kB / 278.2 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.005545, allocations: 192 / 278.2 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.005554, allocations: 8.375 kB / 278.2 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.00556, allocations: 7.938 kB / 278.2 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.784e-05/0.005608, allocations: 42.78 kB / 278.2 MB, free: 380 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003867/0.005995, allocations: 0.6367 MB / 278.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.006111, allocations: 125.4 kB / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.291e-05/0.006154, allocations: 51.14 kB / 279 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.006169, allocations: 7.984 kB / 279 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001422/0.006312, allocations: 41.33 kB / 279.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.006313, allocations: 4 kB / 279.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001685/0.006481, allocations: 109.8 kB / 279.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.006526, allocations: 114.8 kB / 279.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.966e-05/0.006596, allocations: 185.9 kB / 279.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.006606, allocations: 33.7 kB / 279.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.00666, allocations: 154.8 kB / 279.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.006676, allocations: 27.78 kB / 279.7 MB, free: 14.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.006707, allocations: 31.36 kB / 279.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.006809, allocations: 0.4883 MB / 280.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.547e-05/0.006824, allocations: 11.98 kB / 280.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.217e-05/0.006867, allocations: 85.53 kB / 280.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.23e-05/0.006929, allocations: 97.42 kB / 280.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.006931, allocations: 3.938 kB / 280.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.46e-05/0.007025, allocations: 101.4 kB / 280.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.007037, allocations: 8 kB / 280.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.007041, allocations: 0 / 280.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.007049, allocations: 4 kB / 280.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.726e-05/0.007126, allocations: 27.92 kB / 280.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.00713, allocations: 4 kB / 280.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.576e-05/0.007166, allocations: 19.88 kB / 280.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.007172, allocations: 4 kB / 280.6 MB, free: 13.75 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.598e-05/0.007238, allocations: 172.7 kB / 280.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.376e-05/0.007311, allocations: 69.67 kB / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.676e-05/0.007338, allocations: 16.78 kB / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.00734, allocations: 0 / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.007343, allocations: 4 kB / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.007347, allocations: 7.938 kB / 280.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.007468, allocations: 125.1 kB / 280.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.007469, allocations: 0 / 280.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.529e-05/0.007545, allocations: 27.98 kB / 281 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.007548, allocations: 4 kB / 281 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.007558, allocations: 8 kB / 281 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.00756, allocations: 4 kB / 281 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.007561, allocations: 0 / 281 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.007709, allocations: 350.6 kB / 281.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.00772, allocations: 11.89 kB / 281.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.007733, allocations: 4 kB / 281.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.6e-05/0.007789, allocations: 4 kB / 281.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.269e-05/0.007811, allocations: 7.984 kB / 281.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.007816, allocations: 4 kB / 281.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.095e-05/0.007857, allocations: 142 kB / 281.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007857, allocations: 0 / 281.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001853/0.008042, allocations: 27.98 kB / 281.5 MB, free: 12.71 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 6.872e-05/0.008111, allocations: 111.2 kB / 281.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.788e-05/0.008199, allocations: 59.55 kB / 281.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.0082, allocations: 0 / 281.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.061e-05/0.008221, allocations: 23.61 kB / 281.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.008499, allocations: 43.27 kB / 281.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004942/0.008993, allocations: 346.8 kB / 282.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.801e-05/0.009041, allocations: 79.27 kB / 282.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.627e-05/0.009067, allocations: 8.484 kB / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.689e-05/0.009124, allocations: 82.19 kB / 282.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.009125, allocations: 4 kB / 282.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of Templates: time 0.002627/0.01175, allocations: 1.299 MB / 283.6 MB, free: 10.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.500890619121492]