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) 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.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2501, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003761/0.2539, allocations: 2.753 MB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.2554, allocations: 0.8568 MB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.2557, allocations: 7.938 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003418/0.2561, allocations: 71.39 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003632/0.2564, allocations: 142.9 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.2567, allocations: 83.83 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00058/0.2573, allocations: 441.8 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.2575, allocations: 99.33 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.2577, allocations: 159.5 kB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.258, allocations: 187.2 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.2581, allocations: 32 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.084e-05/0.2582, allocations: 36 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.2583, allocations: 71.75 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.2585, allocations: 195.1 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004884/0.259, allocations: 440.2 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.259, allocations: 0 / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.259, allocations: 0 / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.259, allocations: 3.938 kB / 414.3 MB, free: 11.97 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.00135/0.2604, allocations: 0.6796 MB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.2604, allocations: 11.97 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000118/0.2606, allocations: 79.12 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.2607, allocations: 40.47 kB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.2611, allocations: 307.4 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.593e-05/0.2613, allocations: 46.83 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.597e-05/0.2613, allocations: 28.36 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005192/0.2618, allocations: 335.3 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.2619, allocations: 7.844 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.2619, allocations: 15.98 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2619, allocations: 8 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00042/0.2623, allocations: 206.1 kB / 416 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.2639, allocations: 0.8148 MB / 416.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.2644, allocations: 278.8 kB / 417.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.2646, allocations: 116.8 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.2647, allocations: 4 kB / 417.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.2647, allocations: 38.56 kB / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.903e-06/0.2647, allocations: 0 / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001072/0.2658, allocations: 499.2 kB / 417.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.266, allocations: 316.4 kB / 418.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/0.2663, allocations: 278.9 kB / 418.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.2663, allocations: 37.7 kB / 418.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.2664, allocations: 172.6 kB / 418.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.662e-05/0.2665, allocations: 114.5 kB / 418.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.2666, allocations: 61.7 kB / 418.7 MB, free: 7.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.2667, allocations: 346.7 kB / 419 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.267, allocations: 91.95 kB / 419.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.2672, allocations: 204.2 kB / 419.3 MB, free: 6.508 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004307/0.2677, allocations: 264.1 kB / 419.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2677, allocations: 0 / 419.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006292/0.2683, allocations: 369.6 kB / 419.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.2684, allocations: 36.52 kB / 420 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2684, allocations: 0 / 420 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.2686, allocations: 36.84 kB / 420 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009789/0.2696, allocations: 167.8 kB / 420.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.273, allocations: 3.232 MB / 423.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.2733, allocations: 43.78 kB / 423.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.2733, allocations: 8 kB / 423.5 MB, free: 2.051 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.0001643/0.2735, allocations: 157.7 kB / 423.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.2736, allocations: 35.62 kB / 423.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.466e-05/0.2737, allocations: 35.08 kB / 423.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2737, allocations: 4.094 kB / 423.7 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2737, allocations: 7.875 kB / 423.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006224/0.2743, allocations: 0.654 MB / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.2747, allocations: 393.2 kB / 424.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2748, allocations: 0 / 424.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.2761, allocations: 203.7 kB / 424.9 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.83e-05/0.2761, allocations: 24.84 kB / 425 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.2762, allocations: 4 kB / 425 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/0.2791, allocations: 3.046 MB / 428 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2792, allocations: 0 / 428 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007855/0.28, allocations: 0.509 MB / 428.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.2801, allocations: 136.7 kB / 428.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/0.2802, allocations: 11.94 kB / 428.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.2805, allocations: 23.92 kB / 428.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.063e-05/0.2805, allocations: 23.97 kB / 428.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.2806, allocations: 11.98 kB / 428.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.2808, allocations: 202 kB / 428.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2808, allocations: 0 / 428.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004011/0.2812, allocations: 107.8 kB / 429 MB, free: 12 MB / 350.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.001039/0.2822, allocations: 1.06 MB / 430.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.2837, allocations: 0.5334 MB / 430.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2837, allocations: 0 / 430.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.2851, allocations: 402.4 kB / 431 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.2856, allocations: 88.48 kB / 431.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.2901, allocations: 3.398 MB / 434.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.2904, allocations: 0.7876 MB / 435.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.2906, allocations: 34.95 kB / 435.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.2907, allocations: 103.4 kB / 435.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.2907, allocations: 0 / 435.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.3237, allocations: 9.815 MB / 445.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.72, allocations: 17.81 kB / 445.3 MB, free: 11.79 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches