Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009525/0.0009525, allocations: 88.25 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001731/0.001731, allocations: 169.2 kB / 25.61 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9451/0.9451, allocations: 177 MB / 205.9 MB, free: 4.398 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.043e-05/2.173e-05, allocations: 2.312 kB / 274.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002256/0.002277, allocations: 1.683 MB / 275.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007364/0.003014, allocations: 0.5338 MB / 276.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.402e-05/0.003068, allocations: 4 kB / 276.3 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.37e-05/0.003112, allocations: 11.86 kB / 276.3 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.906e-05/0.003181, allocations: 31.7 kB / 276.3 MB, free: 2.051 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.003369, allocations: 28.53 kB / 276.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.003475, allocations: 105.6 kB / 276.5 MB, free: 1.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.003575, allocations: 31.75 kB / 276.5 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.049e-05/0.003636, allocations: 59.88 kB / 276.6 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.893e-05/0.003715, allocations: 27.91 kB / 276.6 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.003734, allocations: 8 kB / 276.6 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.596e-05/0.00381, allocations: 12 kB / 276.6 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.221e-05/0.003832, allocations: 19.98 kB / 276.6 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.003867, allocations: 35.91 kB / 276.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.004011, allocations: 71.69 kB / 276.7 MB, free: 1.66 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.004013, allocations: 0 / 276.7 MB, free: 1.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.004015, allocations: 0 / 276.7 MB, free: 1.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.004021, allocations: 0 / 276.7 MB, free: 1.66 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004314/0.004452, allocations: 408.4 kB / 277.1 MB, free: 1.227 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.004488, allocations: 8.031 kB / 277.1 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.004608, allocations: 24.77 kB / 277.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.004712, allocations: 116.6 kB / 277.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.004728, allocations: 8.375 kB / 277.3 MB, free: 1.047 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.004751, allocations: 8.375 kB / 277.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.386e-05/0.004845, allocations: 76.03 kB / 277.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.004855, allocations: 192 / 277.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.004863, allocations: 4.375 kB / 277.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.004869, allocations: 3.938 kB / 277.4 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.946e-05/0.004918, allocations: 31.97 kB / 277.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.005334, allocations: 359.9 kB / 277.8 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.184e-05/0.005416, allocations: 55.05 kB / 277.8 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.838e-05/0.005444, allocations: 35.75 kB / 277.9 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.005451, allocations: 0 / 277.9 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.005469, allocations: 37.33 kB / 277.9 MB, free: 400 kB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 9.51e-07/0.005469, allocations: 4 kB / 277.9 MB, free: 396 kB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001295/0.005599, allocations: 69.8 kB / 278 MB, free: 320 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.005624, allocations: 51.41 kB / 278 MB, free: 256 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.859e-05/0.005693, allocations: 165.9 kB / 278.2 MB, free: 72 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.005704, allocations: 29.7 kB / 278.2 MB, free: 36 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.44e-05/0.005768, allocations: 150.7 kB / 278.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.005787, allocations: 31.73 kB / 278.4 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.005819, allocations: 31.36 kB / 278.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.005935, allocations: 0.4883 MB / 278.9 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.839e-05/0.005954, allocations: 15.92 kB / 278.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.409e-05/0.005988, allocations: 47.03 kB / 279 MB, free: 15.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.067e-05/0.006038, allocations: 51.05 kB / 279 MB, free: 15.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.00604, allocations: 0 / 279 MB, free: 15.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 9.971e-05/0.00614, allocations: 91.81 kB / 279.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.006152, allocations: 15.98 kB / 279.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.006156, allocations: 0 / 279.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.895e-06/0.006164, allocations: 0 / 279.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.766e-05/0.006242, allocations: 20.25 kB / 279.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.006246, allocations: 4 kB / 279.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.676e-05/0.006273, allocations: 11.95 kB / 279.2 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-06/0.006279, allocations: 4 kB / 279.2 MB, free: 15.03 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.478e-05/0.006343, allocations: 168.4 kB / 279.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.006361, allocations: 4 kB / 279.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.006388, allocations: 16.44 kB / 279.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.00639, allocations: 0 / 279.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.006392, allocations: 0 / 279.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.006395, allocations: 0 / 279.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.006503, allocations: 125.1 kB / 279.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.006504, allocations: 0 / 279.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.073e-05/0.006565, allocations: 19.98 kB / 279.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.006566, allocations: 0 / 279.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.006576, allocations: 4 kB / 279.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.006577, allocations: 4 kB / 279.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.006578, allocations: 0 / 279.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.006719, allocations: 235.7 kB / 279.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.286e-06/0.006727, allocations: 8 kB / 279.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-06/0.006736, allocations: 0 / 279.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.891e-05/0.006765, allocations: 0 / 279.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.006776, allocations: 7.984 kB / 279.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-06/0.006778, allocations: 0 / 279.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.369e-05/0.006811, allocations: 127.2 kB / 279.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006811, allocations: 0 / 279.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000152/0.006963, allocations: 23.95 kB / 279.9 MB, free: 14.24 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.543e-05/0.007039, allocations: 95.25 kB / 280 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.497e-05/0.007134, allocations: 63.44 kB / 280 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.007135, allocations: 0 / 280 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.316e-05/0.007159, allocations: 31.59 kB / 280.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.007334, allocations: 11.94 kB / 280.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004765/0.007811, allocations: 266.5 kB / 280.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.618e-05/0.007847, allocations: 63.34 kB / 280.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.501e-05/0.007872, allocations: 7.984 kB / 280.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.78e-05/0.00792, allocations: 78.2 kB / 280.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.00792, allocations: 0 / 280.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Templates: time 0.002157/0.01008, allocations: 0.6752 MB / 281.2 MB, free: 12.9 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.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.6507179141044617]