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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 108.8 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 225.6 MB / 253.3 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 43.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2255, allocations: 52.18 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003838/0.2293, allocations: 2.787 MB / 426.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2306, allocations: 0.8334 MB / 427 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.2307, allocations: 7.938 kB / 427 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002294/0.2309, allocations: 67.42 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.2312, allocations: 142.9 kB / 427.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.2314, allocations: 87.83 kB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.2319, allocations: 434.3 kB / 427.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.232, allocations: 71.94 kB / 427.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.2322, allocations: 163.4 kB / 428 MB, free: 10 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.2325, allocations: 179.3 kB / 428.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.2325, allocations: 36 kB / 428.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.982e-05/0.2326, allocations: 32 kB / 428.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/0.2327, allocations: 83.67 kB / 428.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2328, allocations: 191.1 kB / 428.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004687/0.2333, allocations: 447 kB / 428.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2333, allocations: 4 kB / 428.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2333, allocations: 0 / 428.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.2333, allocations: 0 / 428.9 MB, free: 9.051 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001032/0.2344, allocations: 0.6118 MB / 429.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.2344, allocations: 16.02 kB / 429.5 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.18e-05/0.2344, allocations: 8.688 kB / 429.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.277e-05/0.2345, allocations: 71.17 kB / 429.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.2346, allocations: 44.7 kB / 429.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.235, allocations: 254.4 kB / 429.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.2351, allocations: 106.2 kB / 430 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.2352, allocations: 32.08 kB / 430 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.2358, allocations: 350.4 kB / 430.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2358, allocations: 0 / 430.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.2358, allocations: 15.94 kB / 430.4 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.2358, allocations: 8 kB / 430.4 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004412/0.2362, allocations: 225.8 kB / 430.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.2378, allocations: 0.8568 MB / 431.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.2384, allocations: 304 kB / 431.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002449/0.2386, allocations: 141.5 kB / 431.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.2386, allocations: 4.328 kB / 431.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/0.2387, allocations: 38.89 kB / 432 MB, free: 5.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.412e-06/0.2387, allocations: 0 / 432 MB, free: 5.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003824/0.2425, allocations: 1.444 MB / 433.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/0.2427, allocations: 316.9 kB / 433.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.243, allocations: 284.2 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.775e-05/0.2431, allocations: 37.7 kB / 434 MB, free: 3.613 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.2432, allocations: 168.8 kB / 434.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.2434, allocations: 186.4 kB / 434.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.2435, allocations: 86.19 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.2437, allocations: 346.8 kB / 434.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/0.244, allocations: 144.9 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004437/0.2445, allocations: 281.4 kB / 435.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006978/0.2451, allocations: 394.8 kB / 435.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2452, allocations: 0 / 435.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009535/0.2461, allocations: 0.5076 MB / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.2461, allocations: 37.73 kB / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.2462, allocations: 8 kB / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.2463, allocations: 36.84 kB / 436.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/0.2486, allocations: 347.5 kB / 436.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003711/0.2523, allocations: 3.014 MB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.2527, allocations: 32.2 kB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.2528, allocations: 20 kB / 439.6 MB, free: 13.72 MB / 350.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 (54): * Single equations (assignments): 51 * 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.0002166/0.253, allocations: 161.7 kB / 439.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.092e-05/0.253, allocations: 43.7 kB / 439.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.2532, allocations: 55.73 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2532, allocations: 4 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2532, allocations: 0 / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009907/0.2542, allocations: 0.7892 MB / 440.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.2562, allocations: 1.025 MB / 441.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2562, allocations: 0 / 441.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/0.258, allocations: 263.7 kB / 441.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.968e-05/0.2581, allocations: 28.78 kB / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.2581, allocations: 8 kB / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.2592, allocations: 1.338 MB / 443.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2592, allocations: 4.031 kB / 443.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.2605, allocations: 0.7425 MB / 444.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.2607, allocations: 79.75 kB / 444.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.2607, allocations: 4 kB / 444.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.261, allocations: 23.98 kB / 444.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.695e-05/0.2611, allocations: 44.36 kB / 444.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.2611, allocations: 12 kB / 444.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.2613, allocations: 199.1 kB / 444.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2613, allocations: 3.938 kB / 444.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004359/0.2618, allocations: 124 kB / 444.5 MB, free: 8.473 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 ($outputAlias_V_flow,$outputAlias_T1,$outputAlias_level2,$outputAlias_T2) * 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 (48): * Single equations (assignments): 47 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/0.2634, allocations: 1.294 MB / 445.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.2652, allocations: 0.6596 MB / 446.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.2652, allocations: 0 / 446.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004793/0.2657, allocations: 313 kB / 446.8 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.2662, allocations: 99.81 kB / 446.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005897/0.2721, allocations: 3.949 MB / 450.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.2725, allocations: 0.8009 MB / 451.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.2727, allocations: 43.27 kB / 451.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.273, allocations: 123.4 kB / 451.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.273, allocations: 0 / 451.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0409/0.3139, allocations: 11.49 MB / 463.3 MB, free: 5.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.65, allocations: 12 kB / 463.3 MB, free: 5.742 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.00029988 --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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable openTank1.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.041304801008664]