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) 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) 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: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 113.3 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 197.3 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001459, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2488, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003007/0.2519, allocations: 1.636 MB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008825/0.2528, allocations: 0.5118 MB / 402.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.932e-05/0.2529, allocations: 4 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.447e-05/0.2529, allocations: 7.922 kB / 402.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.554e-05/0.253, allocations: 31.7 kB / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.2532, allocations: 23.97 kB / 402.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.2534, allocations: 103.5 kB / 402.5 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.2535, allocations: 39.95 kB / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.139e-05/0.2536, allocations: 39.86 kB / 402.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.2537, allocations: 43.84 kB / 402.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.2537, allocations: 8 kB / 402.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.643e-05/0.2538, allocations: 8 kB / 402.7 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.2539, allocations: 15.98 kB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.559e-05/0.254, allocations: 43.8 kB / 402.7 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.2541, allocations: 102.6 kB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2542, allocations: 4 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2542, allocations: 4 kB / 402.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.2542, allocations: 0 / 402.8 MB, free: 6.188 MB / 318.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.0005066/0.2547, allocations: 383.2 kB / 403.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2547, allocations: 12.03 kB / 403.2 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.8e-05/0.2548, allocations: 38.73 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.2549, allocations: 12.89 kB / 403.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.2551, allocations: 168.3 kB / 403.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.2551, allocations: 12.36 kB / 403.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/0.2551, allocations: 12.38 kB / 403.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.2553, allocations: 89.73 kB / 403.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2553, allocations: 7.938 kB / 403.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.2554, allocations: 4 kB / 403.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2554, allocations: 0 / 403.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.2555, allocations: 59.84 kB / 403.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007204/0.2562, allocations: 384.6 kB / 404 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.2564, allocations: 82.48 kB / 404.1 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.597e-05/0.2564, allocations: 28.86 kB / 404.1 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.2565, allocations: 4 kB / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.2565, allocations: 34.55 kB / 404.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.2565, allocations: 0 / 404.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002269/0.2567, allocations: 93.69 kB / 404.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.2568, allocations: 55.41 kB / 404.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.123e-05/0.2569, allocations: 109.8 kB / 404.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.2569, allocations: 29.7 kB / 404.4 MB, free: 4.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.257, allocations: 99.97 kB / 404.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.015e-05/0.257, allocations: 35.84 kB / 404.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.188e-05/0.2571, allocations: 33.7 kB / 404.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2573, allocations: 314.8 kB / 404.9 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.044e-05/0.2573, allocations: 23.98 kB / 404.9 MB, free: 3.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.19e-05/0.2574, allocations: 46.56 kB / 405 MB, free: 3.824 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.2575, allocations: 66.52 kB / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2575, allocations: 0 / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001659/0.2577, allocations: 109.5 kB / 405.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2577, allocations: 8 kB / 405.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2577, allocations: 4.062 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.2578, allocations: 3.938 kB / 405.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.2579, allocations: 20 kB / 405.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.2579, allocations: 7.984 kB / 405.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.106e-05/0.2579, allocations: 3.953 kB / 405.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.258, allocations: 8 kB / 405.2 MB, free: 3.582 MB / 318.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 0.0001013/0.2581, allocations: 117.8 kB / 405.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.2581, allocations: 7.953 kB / 405.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.2582, allocations: 12.31 kB / 405.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.2582, allocations: 4 kB / 405.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2582, allocations: 256 / 405.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.2582, allocations: 4 kB / 405.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.2584, allocations: 185.6 kB / 405.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2584, allocations: 0 / 405.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.2585, allocations: 23.98 kB / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2585, allocations: 0 / 405.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.2586, allocations: 3.938 kB / 405.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2586, allocations: 0 / 405.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2586, allocations: 0 / 405.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002427/0.2588, allocations: 203.7 kB / 405.7 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.869e-05/0.2589, allocations: 85.08 kB / 405.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.2589, allocations: 7.938 kB / 405.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.743e-05/0.259, allocations: 0 / 405.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.111e-05/0.259, allocations: 7.938 kB / 405.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.259, allocations: 7.969 kB / 405.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.914e-05/0.2591, allocations: 87.28 kB / 405.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2591, allocations: 0 / 405.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002418/0.2593, allocations: 28.02 kB / 406 MB, free: 2.719 MB / 318.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.0005458/0.2599, allocations: 0.7281 MB / 406.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001696/0.2601, allocations: 59.86 kB / 406.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2601, allocations: 0 / 406.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.478e-05/0.2601, allocations: 24.17 kB / 406.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.2604, allocations: 8 kB / 406.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.2621, allocations: 1.534 MB / 408.3 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.2625, allocations: 0.6963 MB / 409 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.323e-05/0.2625, allocations: 4 kB / 409 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.2626, allocations: 23.42 kB / 409 MB, free: 15.5 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2626, allocations: 0 / 409 MB, free: 15.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02509/0.2877, allocations: 1.795 MB / 410.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.18, allocations: 14.47 kB / 410.8 MB, free: 13.78 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches