Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_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.001627/0.001627, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.002015/0.002015, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.355/2.355, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0025/0.0025, allocations: 48.31 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1486, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.004385/0.153, allocations: 1.612 MB / 329 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.1545, allocations: 0.5199 MB / 329.5 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.493e-05/0.1546, allocations: 0 / 329.5 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.123e-05/0.1547, allocations: 7.922 kB / 329.5 MB, free: 2.215 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1548, allocations: 27.72 kB / 329.5 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.1552, allocations: 27.95 kB / 329.6 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.1554, allocations: 107.5 kB / 329.7 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.1556, allocations: 43.89 kB / 329.7 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.202e-05/0.1557, allocations: 35.92 kB / 329.8 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.1558, allocations: 35.84 kB / 329.8 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.1558, allocations: 8 kB / 329.8 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.1559, allocations: 16 kB / 329.8 MB, free: 1.918 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.761e-05/0.156, allocations: 19.92 kB / 329.8 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.844e-05/0.1561, allocations: 43.8 kB / 329.9 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1563, allocations: 99.97 kB / 330 MB, free: 1.758 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1564, allocations: 0 / 330 MB, free: 1.758 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1564, allocations: 0 / 330 MB, free: 1.758 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1564, allocations: 0 / 330 MB, free: 1.758 MB / 270.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.0007001/0.1571, allocations: 383.3 kB / 330.3 MB, free: 1.336 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.1572, allocations: 8.031 kB / 330.4 MB, free: 1.328 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.216e-05/0.1572, allocations: 46.73 kB / 330.4 MB, free: 1.273 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.1575, allocations: 8.844 kB / 330.4 MB, free: 1.266 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.1577, allocations: 184.2 kB / 330.6 MB, free: 1.047 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.1577, allocations: 8.375 kB / 330.6 MB, free: 1.039 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.1578, allocations: 8.375 kB / 330.6 MB, free: 1.031 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.158, allocations: 89.78 kB / 330.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.158, allocations: 0 / 330.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1581, allocations: 4 kB / 330.7 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1581, allocations: 4 kB / 330.7 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.1583, allocations: 51.91 kB / 330.8 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000996/0.1593, allocations: 400.4 kB / 331.1 MB, free: 448 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/0.1595, allocations: 74.53 kB / 331.2 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.757e-05/0.1596, allocations: 28.86 kB / 331.2 MB, free: 332 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.1597, allocations: 4 kB / 331.2 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/0.1597, allocations: 38.56 kB / 331.3 MB, free: 280 kB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 2.886e-06/0.1597, allocations: 0 / 331.3 MB, free: 280 kB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003281/0.1601, allocations: 93.45 kB / 331.4 MB, free: 180 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.1601, allocations: 55.41 kB / 331.4 MB, free: 112 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.1603, allocations: 109.8 kB / 331.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.1603, allocations: 25.7 kB / 331.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.892e-05/0.1604, allocations: 103.8 kB / 331.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.512e-05/0.1605, allocations: 31.55 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.1606, allocations: 33.7 kB / 331.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003785/0.161, allocations: 314.8 kB / 332 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.507e-05/0.1611, allocations: 19.98 kB / 332.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.227e-05/0.1612, allocations: 50.55 kB / 332.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.1613, allocations: 70.59 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1614, allocations: 4 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002486/0.1616, allocations: 97.62 kB / 332.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1617, allocations: 15.88 kB / 332.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.1617, allocations: 3.984 kB / 332.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.1617, allocations: 3.938 kB / 332.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.1619, allocations: 24 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.162, allocations: 4 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.787e-05/0.1621, allocations: 11.78 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.1621, allocations: 4 kB / 332.3 MB, free: 15.14 MB / 286.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.0001202/0.1622, allocations: 125.9 kB / 332.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.1623, allocations: 7.906 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.1623, allocations: 12.31 kB / 332.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1623, allocations: 0 / 332.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.1624, allocations: 0 / 332.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1624, allocations: 0 / 332.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000327/0.1627, allocations: 185.6 kB / 332.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1627, allocations: 256 / 332.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.1629, allocations: 16 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.1629, allocations: 11.98 kB / 332.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.1629, allocations: 7.938 kB / 332.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.163, allocations: 0 / 332.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.163, allocations: 0 / 332.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.1633, allocations: 191.4 kB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.1634, allocations: 81.14 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.1634, allocations: 3.938 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.1635, allocations: 4 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.1636, allocations: 12.05 kB / 333 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.1636, allocations: 0 / 333 MB, free: 14.4 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.235e-05/0.1637, allocations: 87.27 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1637, allocations: 0 / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004527/0.1641, allocations: 27.84 kB / 333.1 MB, free: 14.29 MB / 286.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.0006181/0.1648, allocations: 0.7204 MB / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002066/0.165, allocations: 60.33 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.165, allocations: 0 / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.531e-05/0.1651, allocations: 27.92 kB / 333.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005262/0.1656, allocations: 16.08 kB / 333.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.1679, allocations: 1.528 MB / 335.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1684, allocations: 0.6924 MB / 336.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.136e-05/0.1684, allocations: 15.94 kB / 336.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.911e-05/0.1685, allocations: 19.44 kB / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of SimCode: time 6.061e-06/0.1685, allocations: 0 / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.2017, allocations: 1.757 MB / 337.9 MB, free: 9.258 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.08, allocations: 8.547 kB / 337.9 MB, free: 9.25 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches