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.000915/0.000915, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.000995/0.000995, allocations: 172.7 kB / 24.91 MB, free: 9.148 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.9741/0.9741, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.422e-06/1.422e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.265e-05, allocations: 2.312 kB / 273.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002696/0.002719, allocations: 2.102 MB / 275.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007264/0.003445, allocations: 0.5334 MB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.99e-05/0.003535, allocations: 7.938 kB / 276.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.777e-05/0.003633, allocations: 15.8 kB / 276.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.353e-05/0.003687, allocations: 23.73 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.003915, allocations: 59.8 kB / 276.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.004045, allocations: 127.5 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.004151, allocations: 42.25 kB / 276.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.004252, allocations: 75.8 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.099e-05/0.004333, allocations: 39.88 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.004357, allocations: 12 kB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.306e-05/0.00437, allocations: 8 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.606e-05/0.004396, allocations: 27.86 kB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.467e-05/0.00443, allocations: 35.91 kB / 276.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.00459, allocations: 95.64 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.004593, allocations: 0 / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.004594, allocations: 0 / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.004599, allocations: 7.938 kB / 276.7 MB, free: 14.05 MB / 266.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.0003622/0.004961, allocations: 316.5 kB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.00499, allocations: 12.03 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.005022, allocations: 16.92 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.005155, allocations: 145.5 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.005167, allocations: 12.38 kB / 277.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.005189, allocations: 16.36 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.005405, allocations: 203.6 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.005415, allocations: 4.172 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.005426, allocations: 12.36 kB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-06/0.005431, allocations: 3.938 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.408e-05/0.005475, allocations: 31.92 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000323/0.005798, allocations: 450 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.0059, allocations: 103.7 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.761e-05/0.005938, allocations: 42.64 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.005954, allocations: 7.938 kB / 278 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.005977, allocations: 38.56 kB / 278 MB, free: 12.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.933e-06/0.005979, allocations: 0 / 278 MB, free: 12.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001532/0.006132, allocations: 89.53 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.006181, allocations: 110.8 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.156e-05/0.006243, allocations: 130.7 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.006253, allocations: 33.83 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.006293, allocations: 119.7 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.006309, allocations: 27.83 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.006336, allocations: 21.72 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.274e-05/0.006428, allocations: 326.7 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.156e-05/0.00644, allocations: 8 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.477e-05/0.006475, allocations: 66.78 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.587e-05/0.00653, allocations: 74.78 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.006533, allocations: 0 / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.014e-05/0.006613, allocations: 89.47 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.006624, allocations: 4 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.006629, allocations: 4 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.006639, allocations: 0 / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.006746, allocations: 39.52 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.00675, allocations: 0 / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.504e-05/0.006785, allocations: 27.81 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.006791, allocations: 4 kB / 279.2 MB, free: 11.24 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 5.627e-05/0.006847, allocations: 117.8 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.006909, allocations: 57.67 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.006934, allocations: 12.78 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.006937, allocations: 4 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.006938, allocations: 0 / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.006942, allocations: 4 kB / 279.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.007053, allocations: 101.7 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.007054, allocations: 0 / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.912e-05/0.007144, allocations: 35.92 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.007146, allocations: 240 / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.007158, allocations: 4 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.007159, allocations: 0 / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.00716, allocations: 0 / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.007286, allocations: 255.5 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.22e-05/0.007298, allocations: 11.94 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.00731, allocations: 4.031 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.481e-05/0.007365, allocations: 8 kB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.483e-05/0.00739, allocations: 11.92 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-06/0.007394, allocations: 4 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.71e-05/0.007411, allocations: 16.84 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007411, allocations: 0 / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001513/0.007563, allocations: 27.94 kB / 279.9 MB, free: 10.52 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 7.373e-05/0.007636, allocations: 88.36 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.312e-05/0.00772, allocations: 56.89 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.007723, allocations: 0 / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.013e-05/0.007743, allocations: 24.78 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.007984, allocations: 35.58 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/0.008504, allocations: 307.4 kB / 280.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.958e-05/0.008543, allocations: 71.34 kB / 280.4 MB, free: 9.883 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.73e-05/0.00857, allocations: 13.16 kB / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.008629, allocations: 67.36 kB / 280.5 MB, free: 9.801 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.00863, allocations: 4 kB / 280.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of Templates: time 0.0027/0.01133, allocations: 1.265 MB / 281.8 MB, free: 8.594 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 -s gbode -gbm=radauIIA3 -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.596137008164078]