Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 60.05 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2608, allocations: 50.54 MB / 408.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003358/0.2642, allocations: 1.642 MB / 410.4 MB, free: 40 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.2654, allocations: 0.5494 MB / 410.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.2655, allocations: 0 / 410.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.451e-05/0.2656, allocations: 7.922 kB / 410.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.2658, allocations: 31.7 kB / 411 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.266, allocations: 27.97 kB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.2662, allocations: 103.5 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.2664, allocations: 39.95 kB / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.473e-05/0.2665, allocations: 35.86 kB / 411.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.2666, allocations: 35.86 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.2666, allocations: 8 kB / 411.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.009e-05/0.2667, allocations: 12 kB / 411.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.509e-05/0.2667, allocations: 19.92 kB / 411.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.752e-05/0.2668, allocations: 47.84 kB / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.267, allocations: 106.6 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.267, allocations: 0 / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.267, allocations: 0 / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.267, allocations: 0 / 411.4 MB, free: 15.02 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.0005126/0.2676, allocations: 387.1 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.2676, allocations: 8.031 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.118e-05/0.2677, allocations: 38.75 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.2678, allocations: 12.88 kB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.268, allocations: 176.2 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.268, allocations: 12.38 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.268, allocations: 8.375 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.2682, allocations: 88.19 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.2682, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.2682, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2683, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.2684, allocations: 55.91 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007548/0.2691, allocations: 392.6 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.2693, allocations: 74.48 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.033e-05/0.2694, allocations: 36.84 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.2694, allocations: 0 / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.2694, allocations: 30.56 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.2695, allocations: 4 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002392/0.2697, allocations: 89.56 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.2698, allocations: 55.39 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.712e-05/0.2699, allocations: 117.9 kB / 412.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.2699, allocations: 25.7 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.27, allocations: 104 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.27, allocations: 35.88 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.27, allocations: 25.72 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.2702, allocations: 318.8 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.456e-05/0.2702, allocations: 24 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.437e-05/0.2703, allocations: 42.06 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.2704, allocations: 74.44 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2704, allocations: 0 / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001618/0.2706, allocations: 105.6 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2706, allocations: 8 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.2706, allocations: 4 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2706, allocations: 3.938 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.2708, allocations: 23.98 kB / 413.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.2708, allocations: 0 / 413.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.842e-05/0.2709, allocations: 8 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.2709, allocations: 4 kB / 413.7 MB, free: 12.43 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 0.0001032/0.271, allocations: 125.7 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.271, allocations: 11.94 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.132e-05/0.2711, allocations: 16.3 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.2711, allocations: 4 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2711, allocations: 0 / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2711, allocations: 0 / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.2713, allocations: 181.7 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2713, allocations: 3.984 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.2714, allocations: 19.94 kB / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2715, allocations: 0 / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2715, allocations: 7.938 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2715, allocations: 0 / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2715, allocations: 4 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.2717, allocations: 199.4 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.498e-05/0.2718, allocations: 85 kB / 414.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.2719, allocations: 7.969 kB / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.865e-05/0.2719, allocations: 0 / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.738e-05/0.272, allocations: 3.984 kB / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.272, allocations: 8.25 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.657e-05/0.272, allocations: 87.34 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.272, allocations: 0 / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002556/0.2723, allocations: 24 kB / 414.5 MB, free: 11.56 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.0006245/0.2729, allocations: 0.7202 MB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001708/0.2731, allocations: 60.05 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2731, allocations: 4 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.94e-05/0.2732, allocations: 24 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.2736, allocations: 7.984 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.2753, allocations: 1.542 MB / 416.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.2757, allocations: 0.6961 MB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.191e-05/0.2758, allocations: 11.94 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.883e-05/0.2758, allocations: 19.44 kB / 417.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2758, allocations: 0 / 417.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.2984, allocations: 1.799 MB / 419.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.561, allocations: 11.23 kB / 419.4 MB, free: 6.609 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches