Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001369/0.001369, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001085/0.001085, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9594/0.9594, allocations: 173.4 MB / 202.2 MB, free: 8.277 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.353e-05/2.522e-05, allocations: 2.312 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002692/0.002717, allocations: 2.022 MB / 271.2 MB, free: 7.781 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007294/0.003447, allocations: 0.5246 MB / 271.7 MB, free: 7.254 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.003551, allocations: 4 kB / 271.7 MB, free: 7.25 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.746e-05/0.003649, allocations: 21.92 kB / 271.7 MB, free: 7.23 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.003772, allocations: 27.72 kB / 271.8 MB, free: 7.203 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.003956, allocations: 63.8 kB / 271.8 MB, free: 7.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001355/0.004092, allocations: 123.5 kB / 272 MB, free: 7.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.004207, allocations: 45.55 kB / 272 MB, free: 6.969 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.557e-05/0.004303, allocations: 76.98 kB / 272.1 MB, free: 6.895 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.004369, allocations: 35.89 kB / 272.1 MB, free: 6.859 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.004392, allocations: 12 kB / 272.1 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.313e-05/0.004405, allocations: 8.531 kB / 272.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.708e-05/0.004432, allocations: 28.5 kB / 272.2 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.824e-05/0.00447, allocations: 47.84 kB / 272.2 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.004641, allocations: 89.39 kB / 272.3 MB, free: 6.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.004644, allocations: 0 / 272.3 MB, free: 6.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.004645, allocations: 0 / 272.3 MB, free: 6.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.004652, allocations: 0 / 272.3 MB, free: 6.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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004337/0.005086, allocations: 456.7 kB / 272.7 MB, free: 6.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.005116, allocations: 9.281 kB / 272.7 MB, free: 6.191 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.252e-05/0.005158, allocations: 24.84 kB / 272.8 MB, free: 6.168 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.005382, allocations: 149 kB / 272.9 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.005393, allocations: 12.38 kB / 272.9 MB, free: 5.984 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.005416, allocations: 20.8 kB / 273 MB, free: 5.965 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.005721, allocations: 229.2 kB / 273.2 MB, free: 5.711 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.005734, allocations: 8.609 kB / 273.2 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.005744, allocations: 4.375 kB / 273.2 MB, free: 5.699 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.00575, allocations: 11.94 kB / 273.2 MB, free: 5.688 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.167e-05/0.005802, allocations: 31.91 kB / 273.2 MB, free: 5.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.006238, allocations: 0.6367 MB / 273.9 MB, free: 4.965 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.006437, allocations: 133.4 kB / 274 MB, free: 4.797 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.073e-05/0.006488, allocations: 55.02 kB / 274.1 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.006506, allocations: 4 kB / 274.1 MB, free: 4.727 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.006531, allocations: 45.33 kB / 274.1 MB, free: 4.672 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.006533, allocations: 0 / 274.1 MB, free: 4.672 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002221/0.006755, allocations: 121.7 kB / 274.2 MB, free: 4.547 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.006813, allocations: 106.8 kB / 274.3 MB, free: 4.418 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.228e-05/0.006905, allocations: 192.5 kB / 274.5 MB, free: 4.215 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.006917, allocations: 25.7 kB / 274.5 MB, free: 4.184 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.484e-05/0.006982, allocations: 162.8 kB / 274.7 MB, free: 4.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.006999, allocations: 23.78 kB / 274.7 MB, free: 3.996 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.007035, allocations: 35.36 kB / 274.8 MB, free: 3.953 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.007147, allocations: 0.4922 MB / 275.2 MB, free: 3.449 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.637e-05/0.007164, allocations: 8 kB / 275.3 MB, free: 3.441 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.997e-05/0.007213, allocations: 81.42 kB / 275.3 MB, free: 3.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.829e-05/0.007282, allocations: 97.53 kB / 275.4 MB, free: 3.199 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.007284, allocations: 0 / 275.4 MB, free: 3.199 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001151/0.007399, allocations: 105.6 kB / 275.5 MB, free: 3.09 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.007413, allocations: 8 kB / 275.5 MB, free: 3.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.007419, allocations: 3.938 kB / 275.5 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.007429, allocations: 4 kB / 275.5 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.623e-05/0.007505, allocations: 27.92 kB / 275.6 MB, free: 3.047 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.007509, allocations: 4 kB / 275.6 MB, free: 3.043 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.707e-05/0.007546, allocations: 11.89 kB / 275.6 MB, free: 3.031 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.007553, allocations: 4 kB / 275.6 MB, free: 3.027 MB / 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 7.314e-05/0.007626, allocations: 164.5 kB / 275.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.007712, allocations: 85.62 kB / 275.8 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.00776, allocations: 16.78 kB / 275.9 MB, free: 2.75 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.007763, allocations: 240 / 275.9 MB, free: 2.75 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.007765, allocations: 0 / 275.9 MB, free: 2.75 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.007769, allocations: 4 kB / 275.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.007911, allocations: 133.1 kB / 276 MB, free: 2.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.007913, allocations: 3.938 kB / 276 MB, free: 2.586 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.208e-05/0.008005, allocations: 31.98 kB / 276 MB, free: 2.555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.008008, allocations: 0 / 276 MB, free: 2.555 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.008022, allocations: 8 kB / 276 MB, free: 2.547 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.008024, allocations: 0 / 276 MB, free: 2.547 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.008026, allocations: 8 kB / 276 MB, free: 2.539 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001887/0.008214, allocations: 354.6 kB / 276.4 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.615e-05/0.00823, allocations: 11.89 kB / 276.4 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.008245, allocations: 0 / 276.4 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.34e-05/0.008318, allocations: 8 kB / 276.4 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-05/0.008346, allocations: 7.984 kB / 276.4 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.00835, allocations: 0 / 276.4 MB, free: 2.141 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.234e-05/0.008402, allocations: 143.2 kB / 276.6 MB, free: 2 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.008402, allocations: 0 / 276.6 MB, free: 2 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001928/0.008595, allocations: 19.95 kB / 276.6 MB, free: 1.98 MB / 250.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 8.568e-05/0.008681, allocations: 115.2 kB / 276.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.785e-05/0.008779, allocations: 59.55 kB / 276.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.00878, allocations: 0 / 276.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.323e-05/0.008803, allocations: 23.61 kB / 276.8 MB, free: 1.77 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.009123, allocations: 43.05 kB / 276.8 MB, free: 1.727 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006166/0.009739, allocations: 351.3 kB / 277.1 MB, free: 1.348 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.64e-05/0.009786, allocations: 71.33 kB / 277.2 MB, free: 1.258 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.223e-05/0.009818, allocations: 8.969 kB / 277.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.888e-05/0.009887, allocations: 86.14 kB / 277.3 MB, free: 1.164 MB / 250.7 MB Notification: Performance of SimCode: time 1.323e-06/0.009888, allocations: 0 / 277.3 MB, free: 1.164 MB / 250.7 MB Notification: Performance of Templates: time 0.004317/0.01421, allocations: 1.337 MB / 278.6 MB, free: 15.86 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.828236687928438]