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.001532/0.001532, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001482/0.001483, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001355/0.001355, allocations: 55.86 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09254, allocations: 46.61 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003161/0.09575, allocations: 1.631 MB / 376.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.09681, allocations: 0.5198 MB / 376.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.412e-05/0.09691, allocations: 0 / 376.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.558e-05/0.09702, allocations: 11.86 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.09713, allocations: 31.77 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.0974, allocations: 27.91 kB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.0976, allocations: 99.53 kB / 376.9 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.09777, allocations: 39.91 kB / 377 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.909e-05/0.09785, allocations: 31.92 kB / 377 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.09795, allocations: 39.84 kB / 377 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.09798, allocations: 8 kB / 377.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.65e-05/0.09809, allocations: 12 kB / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.514e-05/0.09813, allocations: 27.91 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.179e-05/0.0982, allocations: 43.81 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.09839, allocations: 99.61 kB / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.0984, allocations: 0 / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09841, allocations: 0 / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.09843, allocations: 0 / 377.2 MB, free: 2.48 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.000495/0.09893, allocations: 383.2 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.09897, allocations: 8.031 kB / 377.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.954e-05/0.09902, allocations: 42.73 kB / 377.7 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.09915, allocations: 16.89 kB / 377.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.09928, allocations: 172.3 kB / 377.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.09931, allocations: 8.375 kB / 377.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.09934, allocations: 8.375 kB / 377.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.09952, allocations: 89.78 kB / 377.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.09954, allocations: 0 / 377.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.09955, allocations: 0 / 377.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.09956, allocations: 7.984 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.09968, allocations: 55.92 kB / 378 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007285/0.1004, allocations: 396.5 kB / 378.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.1006, allocations: 82.42 kB / 378.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.545e-05/0.1006, allocations: 28.86 kB / 378.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.1006, allocations: 0 / 378.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.1007, allocations: 38.55 kB / 378.5 MB, free: 1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.1007, allocations: 4 kB / 378.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.000214/0.1009, allocations: 85.75 kB / 378.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.101, allocations: 55.41 kB / 378.7 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.697e-05/0.1011, allocations: 109.8 kB / 378.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.1011, allocations: 25.7 kB / 378.8 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.1011, allocations: 112 kB / 378.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.1012, allocations: 27.75 kB / 379 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.793e-05/0.1012, allocations: 33.7 kB / 379 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1014, allocations: 314.8 kB / 379.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.713e-05/0.1014, allocations: 23.98 kB / 379.3 MB, free: 176 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.743e-05/0.1015, allocations: 46.56 kB / 379.4 MB, free: 120 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.1016, allocations: 66.52 kB / 379.4 MB, free: 44 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1017, allocations: 4 kB / 379.4 MB, free: 40 kB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.1546/0.2562, allocations: 98.86 kB / 379.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.2563, allocations: 6.016 kB / 379.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2563, allocations: 1.375 kB / 379.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.2564, allocations: 7.359 kB / 379.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.2565, allocations: 22.78 kB / 379.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2565, allocations: 1.375 kB / 379.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.43e-05/0.2566, allocations: 11.23 kB / 379.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.2566, allocations: 4 kB / 379.6 MB, free: 12.69 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 6.538e-05/0.2567, allocations: 122.4 kB / 379.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/0.2567, allocations: 9.141 kB / 379.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.2567, allocations: 10.47 kB / 379.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2568, allocations: 2.281 kB / 379.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2568, allocations: 0 / 379.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2568, allocations: 1.078 kB / 379.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.257, allocations: 188.9 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.257, allocations: 4.5 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.2571, allocations: 22.84 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2571, allocations: 0.8438 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.2571, allocations: 1.219 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2571, allocations: 1.562 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2571, allocations: 0 / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001845/0.2573, allocations: 202.1 kB / 380.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.16e-05/0.2573, allocations: 88.45 kB / 380.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.2573, allocations: 4.125 kB / 380.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.2574, allocations: 4.812 kB / 380.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.778e-05/0.2574, allocations: 6.672 kB / 380.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.2575, allocations: 1.406 kB / 380.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.74e-05/0.2575, allocations: 85.45 kB / 380.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2575, allocations: 2.719 kB / 380.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.2578, allocations: 25.38 kB / 380.3 MB, free: 12.07 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.0002537/0.258, allocations: 0.7216 MB / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.2582, allocations: 58.97 kB / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2582, allocations: 0 / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.2582, allocations: 26.14 kB / 381.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.2585, allocations: 7.359 kB / 381.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.2597, allocations: 1.548 MB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.2598, allocations: 0.6924 MB / 383.4 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.197e-05/0.2598, allocations: 13.2 kB / 383.4 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.2599, allocations: 21.62 kB / 383.4 MB, free: 9.461 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2599, allocations: 1.375 kB / 383.4 MB, free: 9.461 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.279, allocations: 1.804 MB / 385.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.519/7.798, allocations: 13.08 kB / 385.3 MB, free: 8.93 MB / 318.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