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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 111.8 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000857/0.0008571, allocations: 39.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2378, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002496/0.2403, allocations: 1.681 MB / 401.1 MB, free: 31.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006797/0.241, allocations: 0.5081 MB / 401.7 MB, free: 31.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.729e-05/0.2411, allocations: 0 / 401.7 MB, free: 31.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.912e-05/0.2411, allocations: 7.922 kB / 401.7 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.875e-05/0.2412, allocations: 27.78 kB / 401.7 MB, free: 31.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.2414, allocations: 27.91 kB / 401.7 MB, free: 31.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.2415, allocations: 99.53 kB / 401.8 MB, free: 31.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.2417, allocations: 35.95 kB / 401.8 MB, free: 30.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.213e-05/0.2417, allocations: 35.8 kB / 401.9 MB, free: 30.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.051e-05/0.2418, allocations: 39.84 kB / 401.9 MB, free: 30.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2418, allocations: 8 kB / 401.9 MB, free: 30.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.334e-05/0.2419, allocations: 12 kB / 401.9 MB, free: 30.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.927e-05/0.242, allocations: 15.98 kB / 402 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.242, allocations: 43.8 kB / 402 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.2421, allocations: 97.23 kB / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2422, allocations: 0 / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2422, allocations: 0 / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.2422, allocations: 0 / 402.1 MB, free: 30.75 MB / 298.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.0004309/0.2426, allocations: 383.4 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.2426, allocations: 12.03 kB / 402.5 MB, free: 30.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.2428, allocations: 8.844 kB / 402.5 MB, free: 30.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.623e-05/0.2429, allocations: 176.2 kB / 402.7 MB, free: 30.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.2429, allocations: 8.375 kB / 402.7 MB, free: 30.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.2429, allocations: 4.375 kB / 402.7 MB, free: 30.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.2431, allocations: 93.88 kB / 402.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2431, allocations: 0 / 402.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.2431, allocations: 4 kB / 402.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.2431, allocations: 4 kB / 402.8 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.568e-05/0.2432, allocations: 51.97 kB / 402.8 MB, free: 29.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005348/0.2438, allocations: 400.4 kB / 403.2 MB, free: 29.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.2439, allocations: 78.47 kB / 403.3 MB, free: 29.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.274e-05/0.2439, allocations: 36.84 kB / 403.3 MB, free: 29.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.244, allocations: 4 kB / 403.3 MB, free: 29.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.29e-05/0.244, allocations: 34.56 kB / 403.4 MB, free: 29.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.244, allocations: 0 / 403.4 MB, free: 29.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001768/0.2442, allocations: 81.62 kB / 403.4 MB, free: 29.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.2442, allocations: 59.34 kB / 403.5 MB, free: 29.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.418e-05/0.2443, allocations: 113.7 kB / 403.6 MB, free: 29.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-06/0.2443, allocations: 29.7 kB / 403.6 MB, free: 29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.4e-05/0.2443, allocations: 99.94 kB / 403.7 MB, free: 28.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2443, allocations: 23.56 kB / 403.8 MB, free: 28.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.2444, allocations: 29.7 kB / 403.8 MB, free: 28.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.067e-05/0.2444, allocations: 318.8 kB / 404.1 MB, free: 28.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.605e-05/0.2445, allocations: 23.98 kB / 404.1 MB, free: 28.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.277e-05/0.2445, allocations: 42.56 kB / 404.2 MB, free: 28.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.01e-05/0.2446, allocations: 66.52 kB / 404.2 MB, free: 28.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2446, allocations: 0 / 404.2 MB, free: 28.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001131/0.2447, allocations: 109.5 kB / 404.3 MB, free: 28.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2448, allocations: 4 kB / 404.3 MB, free: 28.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2448, allocations: 4 kB / 404.3 MB, free: 28.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.2448, allocations: 7.875 kB / 404.4 MB, free: 28.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.2449, allocations: 24.23 kB / 404.4 MB, free: 28.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.2449, allocations: 0 / 404.4 MB, free: 28.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.284e-05/0.245, allocations: 19.91 kB / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.245, allocations: 11.98 kB / 404.4 MB, free: 28.19 MB / 298.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.903e-05/0.2451, allocations: 121.7 kB / 404.5 MB, free: 28.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.2451, allocations: 4 kB / 404.5 MB, free: 28.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.929e-05/0.2451, allocations: 8.375 kB / 404.5 MB, free: 28.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2451, allocations: 3.938 kB / 404.5 MB, free: 28.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2451, allocations: 4 kB / 404.5 MB, free: 28.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2451, allocations: 3.984 kB / 404.6 MB, free: 28.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.2453, allocations: 189.7 kB / 404.7 MB, free: 27.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.2453, allocations: 0 / 404.7 MB, free: 27.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.995e-05/0.2454, allocations: 23.98 kB / 404.8 MB, free: 27.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2454, allocations: 0 / 404.8 MB, free: 27.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2454, allocations: 0 / 404.8 MB, free: 27.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2454, allocations: 3.938 kB / 404.8 MB, free: 27.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2454, allocations: 4 kB / 404.8 MB, free: 27.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008289/0.2463, allocations: 1.175 MB / 405.9 MB, free: 26.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.931e-05/0.2463, allocations: 88.89 kB / 406 MB, free: 26.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.455e-06/0.2463, allocations: 0 / 406 MB, free: 26.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.86e-05/0.2464, allocations: 15.95 kB / 406 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.091e-05/0.2464, allocations: 4.062 kB / 406.1 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.2464, allocations: 7.938 kB / 406.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.447e-05/0.2464, allocations: 91.33 kB / 406.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2465, allocations: 0 / 406.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002912/0.2468, allocations: 28 kB / 406.2 MB, free: 26.2 MB / 298.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 6.91e-05/0.2468, allocations: 95.25 kB / 406.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.2469, allocations: 55.92 kB / 406.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2469, allocations: 4.125 kB / 406.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.62e-05/0.247, allocations: 23.98 kB / 406.4 MB, free: 26.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.2473, allocations: 11.94 kB / 406.4 MB, free: 26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005475/0.2478, allocations: 483 kB / 406.8 MB, free: 25.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.2479, allocations: 0.6965 MB / 407.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.328e-05/0.248, allocations: 0 / 407.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.234e-05/0.248, allocations: 11.44 kB / 407.5 MB, free: 24.75 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.248, allocations: 11.94 kB / 407.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of Templates: time 0.00242/0.2504, allocations: 0.7007 MB / 408.3 MB, free: 24.05 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches