Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 114.7 kB / 19.17 MB, free: 3.891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 203.8 kB / 22.11 MB, free: 0.9531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 207.6 MB / 232.5 MB, free: 11.5 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 59.91 kB / 343 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2494, allocations: 49.12 MB / 392.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003654/0.253, allocations: 2.761 MB / 394.9 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.2542, allocations: 0.8724 MB / 395.7 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.2543, allocations: 6.531 kB / 395.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.2546, allocations: 76.39 kB / 395.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002627/0.2549, allocations: 135.7 kB / 395.9 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.2551, allocations: 95.2 kB / 396 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.2556, allocations: 442.6 kB / 396.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2557, allocations: 72.25 kB / 396.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.2559, allocations: 166.4 kB / 396.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.2561, allocations: 177.1 kB / 396.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.319e-05/0.2562, allocations: 35.34 kB / 396.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.62e-05/0.2562, allocations: 34.41 kB / 396.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.034e-05/0.2563, allocations: 76.53 kB / 397 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.2565, allocations: 193.2 kB / 397.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004644/0.2569, allocations: 447.2 kB / 397.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2569, allocations: 0 / 397.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2569, allocations: 0 / 397.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.2569, allocations: 0 / 397.6 MB, free: 5.168 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.001029/0.258, allocations: 0.6954 MB / 398.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.258, allocations: 9.844 kB / 398.4 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.476e-05/0.2581, allocations: 12.8 kB / 398.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.448e-05/0.2581, allocations: 69.45 kB / 398.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.2583, allocations: 45.34 kB / 398.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.2586, allocations: 310 kB / 398.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.54e-05/0.2587, allocations: 51.91 kB / 398.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.2588, allocations: 29.12 kB / 398.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/0.2593, allocations: 354.6 kB / 399.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2593, allocations: 5.391 kB / 399.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.2593, allocations: 11.59 kB / 399.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.2593, allocations: 6.562 kB / 399.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.2597, allocations: 225.3 kB / 399.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.2611, allocations: 0.8884 MB / 400.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.2617, allocations: 305.1 kB / 400.6 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.2619, allocations: 139.2 kB / 400.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.2619, allocations: 4.797 kB / 400.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.262, allocations: 42.89 kB / 400.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.423e-06/0.262, allocations: 0 / 400.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.00403/0.266, allocations: 1.587 MB / 402.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.2661, allocations: 320.8 kB / 402.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.2664, allocations: 279.3 kB / 403 MB, free: 1.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.2664, allocations: 35.11 kB / 403 MB, free: 1.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.451e-05/0.2665, allocations: 169.9 kB / 403.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.946e-05/0.2666, allocations: 186.1 kB / 403.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.2667, allocations: 90.89 kB / 403.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.868e-05/0.2668, allocations: 347.2 kB / 403.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.2671, allocations: 151.4 kB / 403.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003842/0.2675, allocations: 279 kB / 404.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006548/0.2682, allocations: 398 kB / 404.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2682, allocations: 5.031 kB / 404.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008605/0.269, allocations: 0.5066 MB / 405.1 MB, free: 336 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.2691, allocations: 40.22 kB / 405.2 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2691, allocations: 1.438 kB / 405.2 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.2692, allocations: 36.98 kB / 405.2 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/0.2718, allocations: 350 kB / 405.5 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004184/0.2759, allocations: 3.226 MB / 408.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005546/0.2765, allocations: 27.8 kB / 408.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.2765, allocations: 19.42 kB / 408.8 MB, free: 13.22 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 (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.0003096/0.2768, allocations: 164.2 kB / 409 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.2769, allocations: 44.97 kB / 409 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001168/0.2771, allocations: 47.33 kB / 409.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2771, allocations: 8.172 kB / 409.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/0.2771, allocations: 2.281 kB / 409.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001098/0.2782, allocations: 0.7957 MB / 409.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.2802, allocations: 1.05 MB / 410.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2802, allocations: 0 / 410.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.2821, allocations: 268.2 kB / 411.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.264e-05/0.2821, allocations: 23.34 kB / 411.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.2822, allocations: 11 kB / 411.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.2834, allocations: 1.436 MB / 412.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2834, allocations: 1.453 kB / 412.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.2848, allocations: 0.7416 MB / 413.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.2851, allocations: 148.6 kB / 413.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/0.2851, allocations: 12.05 kB / 413.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003167/0.2854, allocations: 24.62 kB / 413.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.2855, allocations: 39.34 kB / 413.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.2856, allocations: 14.36 kB / 413.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.2858, allocations: 200 kB / 413.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2858, allocations: 0 / 413.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004795/0.2863, allocations: 124.5 kB / 413.9 MB, free: 9.559 MB / 334.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.001705/0.288, allocations: 1.3 MB / 415.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.2898, allocations: 0.6546 MB / 415.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.2898, allocations: 1.375 kB / 415.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004866/0.2903, allocations: 309.2 kB / 416.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.2909, allocations: 98.98 kB / 416.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005832/0.2967, allocations: 3.948 MB / 420.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.2971, allocations: 0.7938 MB / 421 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002115/0.2974, allocations: 50.5 kB / 421.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.2976, allocations: 126.9 kB / 421.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2976, allocations: 7.875 kB / 421.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03591/0.3335, allocations: 11.19 MB / 432.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.17, allocations: 8.047 kB / 432.4 MB, free: 10.66 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.666991994017735]