Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.00103/0.00103, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001053/0.001053, allocations: 172 kB / 24.82 MB, free: 9.316 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.9815/0.9815, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 3.938 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.319e-05, allocations: 5.125 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002561/0.002584, allocations: 2.062 MB / 275.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008435/0.003428, allocations: 0.588 MB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.00356, allocations: 7.938 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.003671, allocations: 23.73 kB / 276.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.003824, allocations: 31.7 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.004053, allocations: 63.8 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.004203, allocations: 135.4 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.004315, allocations: 38.11 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.004423, allocations: 83.78 kB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.971e-05/0.004492, allocations: 47.83 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.004514, allocations: 8 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.693e-05/0.004531, allocations: 12 kB / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.508e-05/0.004576, allocations: 31.91 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.698e-05/0.004613, allocations: 39.84 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.004755, allocations: 103.5 kB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.004757, allocations: 4 kB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.004758, allocations: 0 / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.004761, allocations: 0 / 276.6 MB, free: 14.02 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004081/0.005169, allocations: 483.8 kB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.005203, allocations: 12.03 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.01e-05/0.005243, allocations: 32.8 kB / 277.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.005397, allocations: 161.2 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.005408, allocations: 12.38 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.00543, allocations: 12.38 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.005677, allocations: 232.7 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.005687, allocations: 8.172 kB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.005696, allocations: 4.375 kB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.005703, allocations: 11.94 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.877e-05/0.005752, allocations: 35.42 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005512/0.006303, allocations: 0.6445 MB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.006479, allocations: 145.3 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.418e-05/0.006523, allocations: 55.14 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.006544, allocations: 4 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.834e-05/0.006563, allocations: 37.33 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.006564, allocations: 0 / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001803/0.006744, allocations: 117.5 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.006802, allocations: 114.8 kB / 278.7 MB, free: 11.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.331e-05/0.006896, allocations: 212.2 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.006908, allocations: 33.7 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.199e-05/0.00697, allocations: 163.3 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.006986, allocations: 19.92 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.007021, allocations: 43.34 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.007138, allocations: 0.4922 MB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.58e-05/0.007154, allocations: 7.984 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.562e-05/0.007199, allocations: 81.48 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.727e-05/0.007267, allocations: 97.36 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.007269, allocations: 4 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.938e-05/0.007369, allocations: 105.4 kB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.007379, allocations: 4 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.007385, allocations: 4 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.007395, allocations: 0 / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.153e-05/0.007456, allocations: 31.86 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.007462, allocations: 8.203 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.582e-05/0.007498, allocations: 19.86 kB / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.007503, allocations: 4 kB / 280 MB, free: 10.26 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 7.336e-05/0.007576, allocations: 160.6 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-05/0.007657, allocations: 81.53 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.159e-05/0.007709, allocations: 20.77 kB / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.007712, allocations: 4 kB / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.007713, allocations: 0 / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.007717, allocations: 0 / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.007863, allocations: 137.1 kB / 280.4 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.007865, allocations: 4 kB / 280.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8e-05/0.007945, allocations: 35.92 kB / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.007948, allocations: 4 kB / 280.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.007958, allocations: 0 / 280.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.00796, allocations: 0 / 280.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.007961, allocations: 4 kB / 280.5 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.008157, allocations: 346.7 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-05/0.008202, allocations: 36.05 kB / 280.9 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.008214, allocations: 4 kB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.194e-05/0.008276, allocations: 8 kB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.008303, allocations: 12 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.008306, allocations: 4 kB / 280.9 MB, free: 9.344 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.161e-05/0.008358, allocations: 152.7 kB / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008358, allocations: 0 / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001854/0.008543, allocations: 24 kB / 281.1 MB, free: 9.172 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 6.63e-05/0.00861, allocations: 99.25 kB / 281.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.898e-05/0.008699, allocations: 67.41 kB / 281.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.0087, allocations: 448 / 281.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.997e-05/0.00872, allocations: 27.61 kB / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.009005, allocations: 58.52 kB / 281.3 MB, free: 8.914 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005608/0.009566, allocations: 371.5 kB / 281.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.661e-05/0.009612, allocations: 75.33 kB / 281.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.946e-05/0.009642, allocations: 12.66 kB / 281.8 MB, free: 8.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.525e-05/0.009707, allocations: 90.19 kB / 281.8 MB, free: 8.32 MB / 266.7 MB Notification: Performance of SimCode: time 6.02e-07/0.009707, allocations: 0 / 281.8 MB, free: 8.32 MB / 266.7 MB Notification: Performance of Templates: time 0.002854/0.01256, allocations: 1.468 MB / 283.3 MB, free: 6.914 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.8891839352436364]