Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 55.91 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09962/0.1014, allocations: 53.38 MB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004195/0.1056, allocations: 2.776 MB / 429.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.107, allocations: 0.8606 MB / 430.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1071, allocations: 11.94 kB / 430.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.1073, allocations: 67.47 kB / 430.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002772/0.1076, allocations: 142.9 kB / 430.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.1078, allocations: 79.88 kB / 431 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004998/0.1083, allocations: 446.3 kB / 431.4 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.1084, allocations: 59.39 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.1086, allocations: 163.4 kB / 431.6 MB, free: 20 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1955/0.3041, allocations: 177.2 kB / 431.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.3042, allocations: 34.31 kB / 431.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.865e-05/0.3043, allocations: 35.5 kB / 431.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.513e-05/0.3043, allocations: 76.36 kB / 431.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.3046, allocations: 196.9 kB / 432.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.305, allocations: 439.5 kB / 432.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.305, allocations: 0 / 432.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.305, allocations: 2.188 kB / 432.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.305, allocations: 0 / 432.6 MB, free: 7.805 MB / 350.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.0009329/0.3059, allocations: 0.6934 MB / 433.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.306, allocations: 9.5 kB / 433.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.266e-05/0.306, allocations: 12.05 kB / 433.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.257e-05/0.3061, allocations: 72.53 kB / 433.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.007e-05/0.3062, allocations: 46.36 kB / 433.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.3065, allocations: 312.6 kB / 433.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.337e-05/0.3066, allocations: 49.23 kB / 433.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.3067, allocations: 30.12 kB / 433.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.3071, allocations: 349.5 kB / 434.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3071, allocations: 2.594 kB / 434.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.3071, allocations: 13.56 kB / 434.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.3072, allocations: 6.406 kB / 434.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003954/0.3075, allocations: 227.3 kB / 434.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3088, allocations: 0.8926 MB / 435.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.3094, allocations: 300.7 kB / 435.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.3096, allocations: 146.7 kB / 435.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.3096, allocations: 8.281 kB / 435.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.3097, allocations: 38.11 kB / 435.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.522e-06/0.3097, allocations: 0 / 435.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003605/0.3133, allocations: 1.576 MB / 437.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3133, allocations: 320.5 kB / 437.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.3136, allocations: 279.8 kB / 437.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.3136, allocations: 35.58 kB / 437.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.3137, allocations: 172 kB / 438.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.618e-05/0.3138, allocations: 184 kB / 438.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.3139, allocations: 90.97 kB / 438.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.62e-05/0.314, allocations: 351.5 kB / 438.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.3143, allocations: 146.8 kB / 438.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000391/0.3147, allocations: 282.1 kB / 439.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.3153, allocations: 396.8 kB / 439.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3153, allocations: 1.406 kB / 439.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008536/0.3162, allocations: 0.5037 MB / 440 MB, free: 4.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.3162, allocations: 35.92 kB / 440.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3162, allocations: 5.781 kB / 440.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001377/0.3164, allocations: 40.83 kB / 440.1 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002472/0.3188, allocations: 350.7 kB / 440.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/0.3217, allocations: 3.226 MB / 443.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.3221, allocations: 31.61 kB / 443.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.3222, allocations: 15.22 kB / 443.7 MB, free: 1.078 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.0001781/0.3223, allocations: 159.7 kB / 443.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.729e-05/0.3224, allocations: 46.02 kB / 443.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.882e-05/0.3225, allocations: 51.64 kB / 444 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3225, allocations: 4.375 kB / 444 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3225, allocations: 0.7031 kB / 444 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009011/0.3234, allocations: 0.7949 MB / 444.8 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.3253, allocations: 1.057 MB / 445.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3253, allocations: 0 / 445.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/0.3272, allocations: 263.9 kB / 446.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.068e-05/0.3272, allocations: 26.83 kB / 446.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.3273, allocations: 7.766 kB / 446.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.3285, allocations: 1.431 MB / 447.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3285, allocations: 0.5156 kB / 447.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.3299, allocations: 0.7494 MB / 448.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.3301, allocations: 152.2 kB / 448.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.493e-05/0.3301, allocations: 11.22 kB / 448.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.3304, allocations: 20.11 kB / 448.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.3305, allocations: 35.55 kB / 448.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.3306, allocations: 9.812 kB / 448.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.3308, allocations: 208.8 kB / 448.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3308, allocations: 0 / 448.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.3313, allocations: 120.4 kB / 448.9 MB, free: 13.48 MB / 366.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.001762/0.3331, allocations: 1.298 MB / 450.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.3351, allocations: 0.6688 MB / 450.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3351, allocations: 1.25 kB / 450.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005073/0.3356, allocations: 313.2 kB / 451.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005709/0.3361, allocations: 100.3 kB / 451.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006016/0.3422, allocations: 3.957 MB / 455.2 MB, free: 9.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.3426, allocations: 0.7999 MB / 456 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000254/0.3429, allocations: 48.75 kB / 456 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.3431, allocations: 126.8 kB / 456.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3431, allocations: 0 / 456.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03744/0.3805, allocations: 11.17 MB / 467.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.07, allocations: 17.47 kB / 467.3 MB, free: 4.871 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.601047175994609]