Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.001043/0.001043, allocations: 105.6 kB / 17.06 MB, free: 6.117 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.001216/0.001216, allocations: 195 kB / 18 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009701/0.0009701, allocations: 51.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2311, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003808/0.235, allocations: 2.752 MB / 403 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2364, allocations: 0.8255 MB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.2367, allocations: 4 kB / 403.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.237, allocations: 83.39 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003536/0.2374, allocations: 126.9 kB / 404 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.2377, allocations: 87.81 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005569/0.2383, allocations: 441.1 kB / 404.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001944/0.2385, allocations: 99.36 kB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.2387, allocations: 163.4 kB / 404.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.239, allocations: 171.3 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.9e-05/0.2391, allocations: 35.98 kB / 405 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.026e-05/0.2392, allocations: 36 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.007e-05/0.2393, allocations: 79.69 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.2395, allocations: 203 kB / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004804/0.24, allocations: 444.1 kB / 405.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.24, allocations: 4 kB / 405.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.24, allocations: 0 / 405.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.824e-05/0.24, allocations: 0 / 405.7 MB, free: 3.309 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001244/0.2413, allocations: 0.6718 MB / 406.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2413, allocations: 12.02 kB / 406.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.2415, allocations: 71.14 kB / 406.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.565e-05/0.2416, allocations: 44.47 kB / 406.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.242, allocations: 307.4 kB / 406.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.716e-05/0.2421, allocations: 50.81 kB / 406.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.2422, allocations: 24.38 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.2427, allocations: 335.3 kB / 407.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2427, allocations: 0 / 407.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.2428, allocations: 16 kB / 407.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.2428, allocations: 8 kB / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000552/0.2434, allocations: 206.1 kB / 407.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.2448, allocations: 0.8148 MB / 408.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.2453, allocations: 271 kB / 408.5 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.2456, allocations: 124.9 kB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.2456, allocations: 11.98 kB / 408.7 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.2457, allocations: 50.58 kB / 408.7 MB, free: 104 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.675e-06/0.2457, allocations: 0 / 408.7 MB, free: 104 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001062/0.2467, allocations: 479.2 kB / 409.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.2469, allocations: 316.4 kB / 409.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.2472, allocations: 279 kB / 409.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.2472, allocations: 33.7 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.2473, allocations: 180.5 kB / 410 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.449e-05/0.2474, allocations: 98.5 kB / 410.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.2475, allocations: 65.7 kB / 410.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.2477, allocations: 354.6 kB / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.2479, allocations: 91.95 kB / 410.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.2482, allocations: 217 kB / 410.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00042/0.2486, allocations: 263.5 kB / 411 MB, free: 13.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.2486, allocations: 4 kB / 411 MB, free: 13.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007546/0.2494, allocations: 361.6 kB / 411.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.2494, allocations: 37.64 kB / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2494, allocations: 0 / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.2496, allocations: 44.83 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.2506, allocations: 159.9 kB / 411.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003804/0.2544, allocations: 3.236 MB / 414.9 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.2548, allocations: 43.66 kB / 414.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.2549, allocations: 12 kB / 414.9 MB, free: 9.391 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002143/0.2551, allocations: 149.8 kB / 415.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.412e-05/0.2552, allocations: 35.62 kB / 415.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.512e-05/0.2553, allocations: 39.08 kB / 415.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2553, allocations: 0 / 415.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2553, allocations: 3.938 kB / 415.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006606/0.256, allocations: 0.6588 MB / 415.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004748/0.2564, allocations: 385.2 kB / 416.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2565, allocations: 4 kB / 416.2 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.2578, allocations: 207.7 kB / 416.4 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.533e-05/0.2579, allocations: 24.84 kB / 416.4 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.2579, allocations: 4 kB / 416.4 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003192/0.2611, allocations: 3.045 MB / 419.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2611, allocations: 0 / 419.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009617/0.2621, allocations: 0.5119 MB / 420 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.2623, allocations: 136.6 kB / 420.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.2624, allocations: 4 kB / 420.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.2627, allocations: 23.92 kB / 420.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.219e-05/0.2628, allocations: 23.95 kB / 420.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.2628, allocations: 12 kB / 420.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.263, allocations: 198 kB / 420.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.552e-06/0.2631, allocations: 0 / 420.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.2635, allocations: 107.8 kB / 420.5 MB, free: 3.355 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001259/0.2648, allocations: 1.064 MB / 421.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.2664, allocations: 0.5413 MB / 422.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.2665, allocations: 0 / 422.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.2679, allocations: 406.7 kB / 422.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.2685, allocations: 88.48 kB / 422.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.2739, allocations: 3.39 MB / 425.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004265/0.2744, allocations: 0.7801 MB / 426.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001895/0.2746, allocations: 38.95 kB / 426.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.2748, allocations: 111.4 kB / 426.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.785e-06/0.2748, allocations: 0 / 426.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03464/0.3094, allocations: 9.81 MB / 436.7 MB, free: 3.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.65, allocations: 4.562 kB / 436.7 MB, free: 3.16 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches