Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.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.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001663/0.001663, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2473, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.OneMass): time 0.004842/0.2522, allocations: 3.692 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.2542, allocations: 1.001 MB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002391/0.2544, allocations: 4 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003586/0.2548, allocations: 115.1 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.2553, allocations: 194.3 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.2556, allocations: 127.8 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007334/0.2563, allocations: 0.6847 MB / 414.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.2566, allocations: 202.2 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.2569, allocations: 247.1 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.2573, allocations: 302.7 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.402e-05/0.2574, allocations: 56 kB / 415.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.05e-05/0.2575, allocations: 56 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.2576, allocations: 123.6 kB / 415.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.2579, allocations: 314.5 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008023/0.2588, allocations: 0.6915 MB / 416.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2588, allocations: 0 / 416.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2588, allocations: 0 / 416.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.2588, allocations: 4 kB / 416.5 MB, free: 9.738 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001676/0.2605, allocations: 0.9086 MB / 417.4 MB, free: 8.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.2605, allocations: 12.03 kB / 417.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.2607, allocations: 79.27 kB / 417.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.2608, allocations: 72.55 kB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008153/0.2616, allocations: 438.8 kB / 418 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.2617, allocations: 66.84 kB / 418.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.134e-05/0.2618, allocations: 32.38 kB / 418.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008417/0.2627, allocations: 492.9 kB / 418.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.2627, allocations: 0 / 418.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.336e-05/0.2627, allocations: 23.94 kB / 418.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.2628, allocations: 8 kB / 418.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008171/0.2636, allocations: 338.4 kB / 419 MB, free: 7.137 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.2657, allocations: 1.295 MB / 420.3 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.2664, allocations: 375.5 kB / 420.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000394/0.2668, allocations: 188.6 kB / 420.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.2669, allocations: 4 kB / 420.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.2669, allocations: 46.5 kB / 420.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.244e-06/0.2669, allocations: 0 / 420.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001608/0.2685, allocations: 0.7247 MB / 421.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002278/0.2688, allocations: 452.9 kB / 422 MB, free: 3.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005357/0.2693, allocations: 457.9 kB / 422.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.2694, allocations: 33.7 kB / 422.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.2696, allocations: 244.7 kB / 422.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.2697, allocations: 130.8 kB / 422.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.2698, allocations: 85.64 kB / 422.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.27, allocations: 354.8 kB / 423.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.2704, allocations: 139.7 kB / 423.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.2709, allocations: 278.8 kB / 423.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007238/0.2716, allocations: 337.2 kB / 424 MB, free: 1.676 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2716, allocations: 0 / 424 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000982/0.2726, allocations: 490 kB / 424.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.2727, allocations: 40.5 kB / 424.6 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.2727, allocations: 4 kB / 424.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.2728, allocations: 49.7 kB / 424.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.2733, allocations: 83.88 kB / 424.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.2759, allocations: 2.953 MB / 427.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004444/0.2764, allocations: 59.78 kB / 427.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.2764, allocations: 15.94 kB / 427.7 MB, free: 13.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002332/0.2767, allocations: 165.8 kB / 427.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.615e-05/0.2768, allocations: 51.67 kB / 427.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.2769, allocations: 56.69 kB / 428 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2769, allocations: 4 kB / 428 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2769, allocations: 3.938 kB / 428 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009869/0.2779, allocations: 0.7282 MB / 428.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.2796, allocations: 1.021 MB / 429.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2796, allocations: 3.938 kB / 429.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004409/0.28, allocations: 87.88 kB / 429.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.28, allocations: 7.875 kB / 429.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.2801, allocations: 8 kB / 429.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2801, allocations: 0 / 429.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2801, allocations: 4 kB / 429.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.2814, allocations: 0.6522 MB / 430.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.2816, allocations: 172.6 kB / 430.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.526e-05/0.2817, allocations: 16.06 kB / 430.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.282, allocations: 23.97 kB / 430.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.164e-05/0.2821, allocations: 27.95 kB / 430.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.2821, allocations: 11.94 kB / 430.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003691/0.2825, allocations: 319.1 kB / 431.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2825, allocations: 0 / 431.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.283, allocations: 139.9 kB / 431.2 MB, free: 9.992 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (35): * Single equations (assignments): 35 * 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.001623/0.2846, allocations: 1.216 MB / 432.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.2859, allocations: 0.6331 MB / 433 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.2859, allocations: 8.125 kB / 433.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.2863, allocations: 171.8 kB / 433.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006947/0.287, allocations: 141.8 kB / 433.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006676/0.2937, allocations: 4.527 MB / 437.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004493/0.2942, allocations: 0.8314 MB / 438.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002684/0.2944, allocations: 56.36 kB / 438.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.2947, allocations: 179.4 kB / 438.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2947, allocations: 7.938 kB / 439 MB, free: 2.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04893/0.3436, allocations: 13.66 MB / 452.6 MB, free: 4.645 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.45, allocations: 15.41 kB / 452.6 MB, free: 4.633 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_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_FluidHeatFlow_Examples_OneMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/OneMass/OneMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches