Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.0009741/0.0009741, allocations: 82.28 kB / 22.21 MB, free: 2.289 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.001078/0.001078, allocations: 147 kB / 25.6 MB, free: 8.93 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.8812/0.8812, allocations: 173.4 MB / 202.2 MB, free: 8.301 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.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.12e-07/9.12e-07, allocations: 3.938 kB / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.949e-06/1.086e-05, allocations: 3.281 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001736/0.001747, allocations: 1.655 MB / 270.8 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000596/0.002343, allocations: 0.5078 MB / 271.3 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.623e-05/0.002389, allocations: 0 / 271.3 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.705e-05/0.002426, allocations: 15.86 kB / 271.3 MB, free: 7.629 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.854e-05/0.002485, allocations: 31.7 kB / 271.4 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.002629, allocations: 23.91 kB / 271.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.554e-05/0.002725, allocations: 103.5 kB / 271.5 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.018e-05/0.002805, allocations: 27.98 kB / 271.5 MB, free: 7.445 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.97e-05/0.002865, allocations: 57.41 kB / 271.6 MB, free: 7.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.177e-05/0.002926, allocations: 31.95 kB / 271.6 MB, free: 7.359 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.002942, allocations: 11.94 kB / 271.6 MB, free: 7.348 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.041e-05/0.002992, allocations: 15.94 kB / 271.6 MB, free: 7.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.003008, allocations: 16.73 kB / 271.7 MB, free: 7.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.003037, allocations: 39.91 kB / 271.7 MB, free: 7.277 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.00314, allocations: 64.75 kB / 271.8 MB, free: 7.215 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.003142, allocations: 0 / 271.8 MB, free: 7.215 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.003142, allocations: 0.625 kB / 271.8 MB, free: 7.215 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.003145, allocations: 0 / 271.8 MB, free: 7.215 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.0002987/0.003444, allocations: 405.3 kB / 272.2 MB, free: 6.785 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.537e-05/0.003469, allocations: 10.34 kB / 272.2 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.446e-05/0.003564, allocations: 28.81 kB / 272.2 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.974e-05/0.003643, allocations: 120.5 kB / 272.3 MB, free: 6.605 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.003655, allocations: 4.375 kB / 272.3 MB, free: 6.602 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.003671, allocations: 12.38 kB / 272.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.171e-05/0.003753, allocations: 66.22 kB / 272.4 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.003763, allocations: 4.188 kB / 272.4 MB, free: 6.516 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.003771, allocations: 4.375 kB / 272.4 MB, free: 6.512 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.003779, allocations: 11.92 kB / 272.4 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.805e-05/0.003827, allocations: 23.97 kB / 272.4 MB, free: 6.477 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003848/0.004212, allocations: 360 kB / 272.8 MB, free: 6.098 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.976e-05/0.004292, allocations: 66.88 kB / 272.9 MB, free: 6.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.27e-05/0.004315, allocations: 19.67 kB / 272.9 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-06/0.004321, allocations: 4 kB / 272.9 MB, free: 5.992 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.004341, allocations: 41.39 kB / 272.9 MB, free: 5.941 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.004342, allocations: 0 / 272.9 MB, free: 5.941 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001148/0.004457, allocations: 65.8 kB / 273 MB, free: 5.871 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.00448, allocations: 55.41 kB / 273 MB, free: 5.805 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.099e-05/0.004541, allocations: 166 kB / 273.2 MB, free: 5.625 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/0.004551, allocations: 29.7 kB / 273.2 MB, free: 5.59 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.1e-05/0.004602, allocations: 158.7 kB / 273.4 MB, free: 5.43 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/0.004617, allocations: 27.73 kB / 273.4 MB, free: 5.402 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.004647, allocations: 31.36 kB / 273.4 MB, free: 5.363 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.00475, allocations: 0.4922 MB / 273.9 MB, free: 4.859 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.461e-05/0.004765, allocations: 8 kB / 273.9 MB, free: 4.852 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.068e-05/0.004795, allocations: 50.97 kB / 274 MB, free: 4.789 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.053e-05/0.004846, allocations: 58.97 kB / 274.1 MB, free: 4.719 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.004847, allocations: 4 kB / 274.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 8.166e-05/0.004929, allocations: 81.58 kB / 274.1 MB, free: 4.629 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.686e-06/0.004938, allocations: 4 kB / 274.1 MB, free: 4.625 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.004942, allocations: 4 kB / 274.1 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.216e-06/0.004951, allocations: 0 / 274.1 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.54e-05/0.005026, allocations: 23.98 kB / 274.2 MB, free: 4.598 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.005029, allocations: 4.062 kB / 274.2 MB, free: 4.594 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.549e-05/0.005054, allocations: 15.89 kB / 274.2 MB, free: 4.578 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.005058, allocations: 0 / 274.2 MB, free: 4.578 MB / 250.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 5.82e-05/0.005116, allocations: 168.4 kB / 274.3 MB, free: 4.402 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.005134, allocations: 8 kB / 274.4 MB, free: 4.395 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.063e-05/0.005155, allocations: 8.438 kB / 274.4 MB, free: 4.383 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.005157, allocations: 4 kB / 274.4 MB, free: 4.379 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.005159, allocations: 0 / 274.4 MB, free: 4.379 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.005163, allocations: 3.984 kB / 274.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.685e-05/0.00526, allocations: 117.1 kB / 274.5 MB, free: 4.234 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.005261, allocations: 7.984 kB / 274.5 MB, free: 4.227 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.371e-05/0.005315, allocations: 16.25 kB / 274.5 MB, free: 4.211 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-07/0.005316, allocations: 0 / 274.5 MB, free: 4.211 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.005326, allocations: 4 kB / 274.5 MB, free: 4.207 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.005326, allocations: 0 / 274.5 MB, free: 4.207 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.005327, allocations: 0 / 274.5 MB, free: 4.207 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.005455, allocations: 231.8 kB / 274.7 MB, free: 3.961 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-06/0.005464, allocations: 11.89 kB / 274.8 MB, free: 3.949 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.594e-06/0.005472, allocations: 0 / 274.8 MB, free: 3.949 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.966e-05/0.005501, allocations: 4 kB / 274.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.005513, allocations: 12.02 kB / 274.8 MB, free: 3.934 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.005515, allocations: 0 / 274.8 MB, free: 3.934 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.249e-05/0.005548, allocations: 127.2 kB / 274.9 MB, free: 3.809 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005548, allocations: 0 / 274.9 MB, free: 3.809 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001514/0.005699, allocations: 24 kB / 274.9 MB, free: 3.785 MB / 250.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 5.874e-05/0.005758, allocations: 91.25 kB / 275 MB, free: 3.688 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.683e-05/0.005835, allocations: 51.59 kB / 275.1 MB, free: 3.633 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.005836, allocations: 0 / 275.1 MB, free: 3.633 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.929e-05/0.005855, allocations: 28 kB / 275.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000167/0.006022, allocations: 20.2 kB / 275.1 MB, free: 3.582 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004321/0.006454, allocations: 274.6 kB / 275.4 MB, free: 3.281 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.128e-05/0.006486, allocations: 59.34 kB / 275.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.137e-05/0.006507, allocations: 7.953 kB / 275.4 MB, free: 3.195 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/0.006553, allocations: 78.2 kB / 275.5 MB, free: 3.117 MB / 250.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006554, allocations: 4 kB / 275.5 MB, free: 3.113 MB / 250.7 MB Notification: Performance of Templates: time 0.001925/0.008479, allocations: 0.6969 MB / 276.2 MB, free: 2.43 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.624932595063001]