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.001326/0.001326, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001394/0.001394, allocations: 205.8 kB / 23.73 MB, free: 4.379 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.372/1.372, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001473/0.001473, allocations: 51.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2548, allocations: 53.35 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.00296/0.2577, allocations: 1.609 MB / 432.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009182/0.2587, allocations: 0.5182 MB / 433.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.147e-05/0.2587, allocations: 4 kB / 433.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.995e-05/0.2588, allocations: 11.86 kB / 433.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.126e-05/0.2588, allocations: 23.78 kB / 433.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.259, allocations: 35.89 kB / 433.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.2592, allocations: 95.53 kB / 433.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.2593, allocations: 31.98 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.707e-05/0.2594, allocations: 43.84 kB / 433.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.507e-05/0.2594, allocations: 31.86 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.2595, allocations: 8 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.316e-05/0.2595, allocations: 19.98 kB / 433.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.239e-05/0.2596, allocations: 12 kB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.435e-05/0.2596, allocations: 39.84 kB / 433.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.2598, allocations: 101.2 kB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2598, allocations: 7.938 kB / 433.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2598, allocations: 0 / 433.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2598, allocations: 0 / 433.6 MB, free: 4.055 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.0005102/0.2603, allocations: 310.1 kB / 433.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2603, allocations: 12.03 kB / 434 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.2604, allocations: 34.75 kB / 434 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.2605, allocations: 16.88 kB / 434 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.2606, allocations: 110.5 kB / 434.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.2606, allocations: 8.375 kB / 434.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.2607, allocations: 4.375 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.2608, allocations: 91.97 kB / 434.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2609, allocations: 0 / 434.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.2609, allocations: 11.98 kB / 434.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2609, allocations: 4 kB / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.261, allocations: 55.95 kB / 434.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006723/0.2617, allocations: 351.5 kB / 434.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.2618, allocations: 70.53 kB / 434.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.074e-05/0.2619, allocations: 36.84 kB / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.2619, allocations: 0 / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.2619, allocations: 34.5 kB / 434.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.2619, allocations: 4 kB / 434.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002179/0.2621, allocations: 89.62 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2622, allocations: 55.34 kB / 434.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.627e-05/0.2623, allocations: 110 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2623, allocations: 25.7 kB / 435 MB, free: 2.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.071e-05/0.2624, allocations: 104 kB / 435.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.2624, allocations: 27.75 kB / 435.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/0.2624, allocations: 29.7 kB / 435.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.2626, allocations: 318.8 kB / 435.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.069e-05/0.2626, allocations: 19.98 kB / 435.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.09e-05/0.2627, allocations: 54.12 kB / 435.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.623e-05/0.2628, allocations: 70.66 kB / 435.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2628, allocations: 4 kB / 435.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001528/0.2629, allocations: 101.6 kB / 435.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.263, allocations: 8 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.263, allocations: 0 / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.263, allocations: 3.938 kB / 435.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.2631, allocations: 27.94 kB / 435.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2631, allocations: 7.984 kB / 435.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.219e-05/0.2632, allocations: 8.016 kB / 435.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.2632, allocations: 4 kB / 435.8 MB, free: 1.672 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 8.721e-05/0.2633, allocations: 117.8 kB / 435.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/0.2633, allocations: 4 kB / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.443e-05/0.2633, allocations: 12.31 kB / 436 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2633, allocations: 0 / 436 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2633, allocations: 0 / 436 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2633, allocations: 7.938 kB / 436 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.2635, allocations: 156.6 kB / 436.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2635, allocations: 0 / 436.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.2636, allocations: 27.92 kB / 436.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2636, allocations: 0 / 436.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2636, allocations: 3.938 kB / 436.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2636, allocations: 4 kB / 436.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2636, allocations: 0 / 436.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.2638, allocations: 187.8 kB / 436.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-06/0.2639, allocations: 3.953 kB / 436.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.2639, allocations: 8.219 kB / 436.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.969e-05/0.2639, allocations: 4 kB / 436.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.605e-05/0.2639, allocations: 7.984 kB / 436.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.264, allocations: 7.938 kB / 436.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.378e-05/0.264, allocations: 83.34 kB / 436.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.264, allocations: 0 / 436.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002333/0.2642, allocations: 27.94 kB / 436.5 MB, free: 0.9492 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.0004816/0.2647, allocations: 0.7243 MB / 437.2 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.2648, allocations: 59.84 kB / 437.3 MB, free: 144 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.582e-06/0.2648, allocations: 0 / 437.3 MB, free: 144 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.464e-05/0.2649, allocations: 23.94 kB / 437.3 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.2652, allocations: 4.188 kB / 437.3 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.2668, allocations: 1.555 MB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.904e-05/0.2669, allocations: 79.19 kB / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.717e-05/0.2669, allocations: 15.94 kB / 438.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.267, allocations: 19.44 kB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.267, allocations: 0 / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03044/0.2974, allocations: 2.375 MB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.62, allocations: 11.08 kB / 441.3 MB, free: 12.09 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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: 12.845037825987674]