Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.001826/0.001826, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002245/0.002245, allocations: 210.5 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 52 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2305, allocations: 53.35 MB / 431.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003317/0.2338, allocations: 1.612 MB / 432.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2348, allocations: 0.5143 MB / 433.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.305e-05/0.2349, allocations: 0 / 433.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.468e-05/0.2349, allocations: 11.88 kB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.549e-05/0.235, allocations: 31.75 kB / 433.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.2352, allocations: 31.91 kB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.2354, allocations: 95.53 kB / 433.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.2355, allocations: 27.97 kB / 433.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.759e-05/0.2356, allocations: 35.88 kB / 433.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.812e-05/0.2357, allocations: 35.84 kB / 433.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.2357, allocations: 8 kB / 433.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.008e-05/0.2358, allocations: 16 kB / 433.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.739e-05/0.2358, allocations: 15.92 kB / 433.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.525e-05/0.2359, allocations: 43.84 kB / 433.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.2361, allocations: 101.3 kB / 433.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2361, allocations: 0 / 433.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2361, allocations: 0 / 433.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.2361, allocations: 0 / 433.6 MB, free: 4.223 MB / 334.1 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.0004952/0.2366, allocations: 314.1 kB / 433.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2366, allocations: 8.031 kB / 433.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.949e-05/0.2367, allocations: 38.75 kB / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.2368, allocations: 16.83 kB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.2369, allocations: 122.4 kB / 434.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.2369, allocations: 8.375 kB / 434.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.237, allocations: 4.375 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.2371, allocations: 85.8 kB / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.2371, allocations: 0 / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2372, allocations: 4 kB / 434.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2372, allocations: 4 kB / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.2373, allocations: 51.97 kB / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007012/0.238, allocations: 355.5 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.2381, allocations: 74.48 kB / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.503e-05/0.2382, allocations: 24.86 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.2382, allocations: 4 kB / 434.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.2382, allocations: 38.55 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.2382, allocations: 0 / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002163/0.2385, allocations: 89.84 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.2385, allocations: 55.41 kB / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.608e-05/0.2386, allocations: 113.9 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.2386, allocations: 29.64 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.849e-05/0.2387, allocations: 104 kB / 435.1 MB, free: 2.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.2387, allocations: 31.89 kB / 435.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.068e-05/0.2388, allocations: 29.7 kB / 435.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2389, allocations: 318.8 kB / 435.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.216e-05/0.239, allocations: 15.98 kB / 435.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.418e-05/0.239, allocations: 46.56 kB / 435.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.2392, allocations: 74.45 kB / 435.6 MB, free: 2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2392, allocations: 0 / 435.6 MB, free: 2 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001766/0.2393, allocations: 109.5 kB / 435.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.2393, allocations: 4 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2393, allocations: 4 kB / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.2394, allocations: 3.938 kB / 435.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.2395, allocations: 24 kB / 435.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.2395, allocations: 0 / 435.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.908e-05/0.2395, allocations: 12.19 kB / 435.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-06/0.2396, allocations: 8 kB / 435.8 MB, free: 1.832 MB / 334.1 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 9.368e-05/0.2396, allocations: 125.8 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.2397, allocations: 4 kB / 435.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.37e-05/0.2397, allocations: 12.31 kB / 435.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2397, allocations: 0 / 435.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2397, allocations: 0 / 435.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2397, allocations: 0 / 435.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/0.2399, allocations: 160.6 kB / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2399, allocations: 0 / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.24, allocations: 19.98 kB / 436.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.24, allocations: 0 / 436.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.24, allocations: 7.938 kB / 436.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.24, allocations: 0 / 436.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.24, allocations: 3.938 kB / 436.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.2403, allocations: 199.5 kB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.048e-05/0.2403, allocations: 3.953 kB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.2403, allocations: 3.938 kB / 436.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.767e-05/0.2404, allocations: 4.031 kB / 436.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.262e-05/0.2404, allocations: 11.97 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.2404, allocations: 4 kB / 436.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.74e-05/0.2404, allocations: 79.28 kB / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2404, allocations: 64 / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002519/0.2407, allocations: 28 kB / 436.5 MB, free: 1.105 MB / 334.1 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 0.0005177/0.2412, allocations: 0.7241 MB / 437.2 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.2414, allocations: 51.92 kB / 437.2 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2414, allocations: 3.938 kB / 437.2 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.873e-05/0.2414, allocations: 23.98 kB / 437.3 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.2417, allocations: 4 kB / 437.3 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.2434, allocations: 1.547 MB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.341e-05/0.2435, allocations: 79.19 kB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.799e-05/0.2435, allocations: 11.94 kB / 438.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.223e-05/0.2436, allocations: 23.44 kB / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2436, allocations: 0 / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/0.2761, allocations: 2.34 MB / 441.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.43, allocations: 3.75 kB / 441.3 MB, free: 12.29 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.878089658915997]