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.001148/0.001148, allocations: 78.97 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.001471/0.001471, allocations: 150.1 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.9769/0.9769, allocations: 173.4 MB / 201.4 MB, free: 9.195 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.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.573e-06/1.573e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.711e-05, allocations: 6.25 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.006057/0.006085, allocations: 2.035 MB / 270.4 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008498/0.006934, allocations: 0.4947 MB / 270.9 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.007042, allocations: 3.938 kB / 270.9 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.007151, allocations: 19.8 kB / 270.9 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.927e-05/0.007221, allocations: 19.78 kB / 271 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.007491, allocations: 59.81 kB / 271 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002199/0.00969, allocations: 127.5 kB / 271.1 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.009835, allocations: 29.62 kB / 271.2 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.009971, allocations: 83.73 kB / 271.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.01017, allocations: 35.89 kB / 271.3 MB, free: 3.273 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.01019, allocations: 12 kB / 271.3 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.918e-05/0.01021, allocations: 12 kB / 271.3 MB, free: 3.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.01024, allocations: 31.89 kB / 271.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.369e-05/0.01029, allocations: 39.91 kB / 271.4 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.01046, allocations: 79.67 kB / 271.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.01046, allocations: 0 / 271.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01047, allocations: 0 / 271.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.01047, allocations: 0 / 271.5 MB, free: 3.102 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.000468/0.01094, allocations: 452 kB / 271.9 MB, free: 2.625 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.01098, allocations: 16.91 kB / 271.9 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.01102, allocations: 24.84 kB / 271.9 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.01118, allocations: 152.4 kB / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.01119, allocations: 16.36 kB / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.01122, allocations: 12.38 kB / 272.1 MB, free: 2.383 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.01146, allocations: 216.8 kB / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.01147, allocations: 4.188 kB / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.01148, allocations: 384 / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.01148, allocations: 7.938 kB / 272.3 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.476e-05/0.01155, allocations: 46.92 kB / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.01197, allocations: 0.625 MB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.0121, allocations: 137.3 kB / 273.1 MB, free: 1.23 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.327e-05/0.01215, allocations: 59.11 kB / 273.2 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.01217, allocations: 4 kB / 273.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.01219, allocations: 41.39 kB / 273.2 MB, free: 1.105 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.01219, allocations: 0 / 273.2 MB, free: 1.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001805/0.01237, allocations: 109.5 kB / 273.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.01242, allocations: 118.7 kB / 273.5 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.398e-05/0.01251, allocations: 181.9 kB / 273.6 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.01252, allocations: 29.7 kB / 273.7 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.886e-05/0.01258, allocations: 162.8 kB / 273.8 MB, free: 468 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.01259, allocations: 19.8 kB / 273.9 MB, free: 448 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.01263, allocations: 39.34 kB / 273.9 MB, free: 400 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.01275, allocations: 0.4924 MB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.01e-05/0.01277, allocations: 7.984 kB / 274.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.337e-05/0.01282, allocations: 81.47 kB / 274.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.043e-05/0.01289, allocations: 97.38 kB / 274.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.01289, allocations: 0 / 274.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003205/0.01321, allocations: 105.7 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.01322, allocations: 8 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.01323, allocations: 0 / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.01324, allocations: 4 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.217e-05/0.01333, allocations: 27.97 kB / 274.7 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.556e-06/0.01334, allocations: 3.938 kB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.926e-05/0.01338, allocations: 23.81 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.01338, allocations: 12.22 kB / 274.8 MB, free: 15.45 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.2e-05/0.01346, allocations: 160.6 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.01354, allocations: 69.58 kB / 275 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.907e-05/0.01357, allocations: 16.72 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01357, allocations: 4 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.01358, allocations: 0 / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.01358, allocations: 4 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.01372, allocations: 129.1 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01372, allocations: 0 / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.391e-05/0.0138, allocations: 27.98 kB / 275.2 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.0138, allocations: 11.94 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.01382, allocations: 4 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.582e-06/0.01382, allocations: 0 / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.01382, allocations: 4 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.01398, allocations: 338.7 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.551e-05/0.014, allocations: 15.89 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.01401, allocations: 4 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.155e-05/0.01407, allocations: 0 / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.0141, allocations: 15.92 kB / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.01411, allocations: 4 kB / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.942e-05/0.01415, allocations: 142.4 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01415, allocations: 0 / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001896/0.01434, allocations: 24 kB / 275.7 MB, free: 14.43 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 8.9e-05/0.01443, allocations: 103.2 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.46e-05/0.01452, allocations: 59.48 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01452, allocations: 0 / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.125e-05/0.01454, allocations: 20.11 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.01487, allocations: 50.89 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005779/0.01544, allocations: 346.5 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.847e-05/0.01549, allocations: 79.33 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.872e-05/0.01552, allocations: 4.5 kB / 276.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.162e-05/0.01558, allocations: 86.19 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01558, allocations: 0 / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of Templates: time 0.002999/0.01858, allocations: 1.285 MB / 277.7 MB, free: 12.39 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] 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","",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.8392745768651366]