Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2618, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.006436/0.2683, allocations: 2.876 MB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.2725, allocations: 1.406 MB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003833/0.2729, allocations: 7.938 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007732/0.2738, allocations: 175.1 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009816/0.2748, allocations: 246.6 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006254/0.2754, allocations: 139.6 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009956/0.2764, allocations: 465.5 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003265/0.2768, allocations: 99.78 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.2772, allocations: 179.3 kB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004656/0.2777, allocations: 211.2 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.919e-05/0.2778, allocations: 32 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002438/0.278, allocations: 75.92 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.2782, allocations: 87.67 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.2785, allocations: 195 kB / 414.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008836/0.2794, allocations: 496.9 kB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2795, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.2795, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2795, allocations: 0 / 415.4 MB, free: 10.89 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001609/0.2811, allocations: 0.7237 MB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.2812, allocations: 8.031 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.2813, allocations: 55.17 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.2815, allocations: 52.61 kB / 416.2 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007689/0.2823, allocations: 354.9 kB / 416.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.2823, allocations: 16.8 kB / 416.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.518e-05/0.2824, allocations: 27.92 kB / 416.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007181/0.2831, allocations: 301.4 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.2832, allocations: 0 / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.2832, allocations: 19.94 kB / 416.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.2833, allocations: 4 kB / 416.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004552/0.2837, allocations: 149.7 kB / 417.1 MB, free: 9.059 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.001979/0.2857, allocations: 0.8363 MB / 417.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.2864, allocations: 191.1 kB / 418.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.2867, allocations: 83.83 kB / 418.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.2867, allocations: 7.922 kB / 418.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004313/0.2872, allocations: 130.4 kB / 418.3 MB, free: 7.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.307e-06/0.2872, allocations: 4 kB / 418.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001189/0.2884, allocations: 407.1 kB / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002228/0.2886, allocations: 316.4 kB / 419 MB, free: 6.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007384/0.2894, allocations: 437.7 kB / 419.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.2895, allocations: 37.69 kB / 419.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.2897, allocations: 204.4 kB / 419.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.2898, allocations: 91.27 kB / 419.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.2899, allocations: 53.7 kB / 419.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2901, allocations: 350.8 kB / 420.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.2903, allocations: 59.97 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.2906, allocations: 179.9 kB / 420.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.2909, allocations: 175.2 kB / 420.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.291, allocations: 4 kB / 420.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005129/0.2915, allocations: 278.1 kB / 420.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.2915, allocations: 4 kB / 420.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2915, allocations: 0 / 420.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001478/0.2917, allocations: 32.84 kB / 420.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.2919, allocations: 55.91 kB / 420.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.2936, allocations: 1.574 MB / 422.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.2938, allocations: 27.88 kB / 422.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.2938, allocations: 12 kB / 422.5 MB, free: 3.129 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002225/0.2941, allocations: 168 kB / 422.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.544e-05/0.2941, allocations: 47.66 kB / 422.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.179e-05/0.2942, allocations: 43.61 kB / 422.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2942, allocations: 4 kB / 422.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.2943, allocations: 0 / 422.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005667/0.2948, allocations: 0.5818 MB / 423.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009875/0.2958, allocations: 0.7079 MB / 424.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2958, allocations: 0 / 424.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.2961, allocations: 47.91 kB / 424.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.2961, allocations: 4 kB / 424.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.2961, allocations: 4 kB / 424.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2961, allocations: 96 / 424.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.2961, allocations: 7.938 kB / 424.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000589/0.2967, allocations: 414.7 kB / 424.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.2969, allocations: 140.7 kB / 424.7 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.2969, allocations: 12 kB / 424.7 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.2972, allocations: 11.98 kB / 424.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/0.2972, allocations: 11.98 kB / 424.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.2972, allocations: 4 kB / 424.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003529/0.2976, allocations: 327.1 kB / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2976, allocations: 0 / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004098/0.298, allocations: 95.89 kB / 425.2 MB, free: 332 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002372/0.3004, allocations: 1.263 MB / 426.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000675/0.3011, allocations: 310.7 kB / 426.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3011, allocations: 8.062 kB / 426.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.3013, allocations: 79.91 kB / 426.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.3019, allocations: 97.44 kB / 426.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.3067, allocations: 3.391 MB / 430.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.3071, allocations: 0.796 MB / 431.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.3073, allocations: 50.94 kB / 431.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.3075, allocations: 131.4 kB / 431.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3075, allocations: 0 / 431.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04128/0.3488, allocations: 10.25 MB / 441.5 MB, free: 156 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.21, allocations: 6.812 kB / 441.5 MB, free: 152 kB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches