Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2289, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005764/0.2347, allocations: 4.843 MB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002842/0.2376, allocations: 1.376 MB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005532/0.2382, allocations: 15.94 kB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005529/0.2388, allocations: 154.7 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.2398, allocations: 333.4 kB / 415.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.2404, allocations: 219.6 kB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.2416, allocations: 1.03 MB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004315/0.2421, allocations: 293.9 kB / 417 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006583/0.2427, allocations: 410.6 kB / 417.4 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006036/0.2434, allocations: 454.1 kB / 417.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.2435, allocations: 88 kB / 417.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002051/0.2438, allocations: 96 kB / 418 MB, free: 8.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.244, allocations: 191.4 kB / 418.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004719/0.2444, allocations: 481.8 kB / 418.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008973/0.2453, allocations: 1.074 MB / 419.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2454, allocations: 3.938 kB / 419.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2454, allocations: 0 / 419.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.2454, allocations: 0 / 419.7 MB, free: 6.453 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002061/0.2474, allocations: 1.22 MB / 421 MB, free: 5.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.2475, allocations: 16.02 kB / 421 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.2477, allocations: 107.9 kB / 421.1 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.2479, allocations: 99.81 kB / 421.2 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007708/0.2486, allocations: 0.5163 MB / 421.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.2488, allocations: 101.3 kB / 421.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.2489, allocations: 52.38 kB / 421.9 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.2501, allocations: 0.8126 MB / 422.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.2501, allocations: 4 kB / 422.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.388e-05/0.2502, allocations: 24 kB / 422.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.2502, allocations: 12 kB / 422.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.2513, allocations: 0.5087 MB / 423.2 MB, free: 2.754 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003237/0.2546, allocations: 2.179 MB / 425.4 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.2558, allocations: 0.5369 MB / 425.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005531/0.2564, allocations: 254.4 kB / 426.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.2564, allocations: 9.656 kB / 426.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006985/0.2571, allocations: 327 kB / 426.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.414e-06/0.2572, allocations: 0 / 426.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004838/0.262, allocations: 1.493 MB / 428 MB, free: 13.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003187/0.2623, allocations: 0.8233 MB / 428.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006856/0.263, allocations: 0.5862 MB / 429.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.478e-05/0.2631, allocations: 41.7 kB / 429.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.2634, allocations: 340.7 kB / 429.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.2636, allocations: 193.2 kB / 430 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/0.2638, allocations: 138.1 kB / 430.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2639, allocations: 374.8 kB / 430.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/0.2645, allocations: 213 kB / 430.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000776/0.2653, allocations: 0.5208 MB / 431.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.2664, allocations: 0.5614 MB / 431.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.2664, allocations: 3.938 kB / 431.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002211/0.2686, allocations: 0.8974 MB / 432.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/0.2687, allocations: 59.41 kB / 432.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2687, allocations: 8.031 kB / 432.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006693/0.2694, allocations: 213.6 kB / 432.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006056/0.27, allocations: 123.7 kB / 433.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00628/0.2763, allocations: 4.599 MB / 437.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007471/0.2771, allocations: 87.48 kB / 437.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.715e-05/0.2771, allocations: 20 kB / 437.8 MB, free: 3.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003418/0.2775, allocations: 205.8 kB / 438 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.2777, allocations: 87 kB / 438 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.2778, allocations: 74.86 kB / 438.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2778, allocations: 4 kB / 438.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2778, allocations: 4 kB / 438.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001916/0.2798, allocations: 1.054 MB / 439.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.2824, allocations: 1.536 MB / 440.7 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.2825, allocations: 7.938 kB / 440.7 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/0.2831, allocations: 111.8 kB / 440.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005337/0.2836, allocations: 169.5 kB / 441 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.2837, allocations: 15.98 kB / 441 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004729/0.2884, allocations: 3.925 MB / 444.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2885, allocations: 0 / 444.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.2907, allocations: 1.032 MB / 446 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003649/0.2911, allocations: 216.1 kB / 446.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.2913, allocations: 16 kB / 446.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.2919, allocations: 47.95 kB / 446.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.292, allocations: 48.56 kB / 446.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.2921, allocations: 19.98 kB / 446.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004766/0.2926, allocations: 415.1 kB / 446.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2926, allocations: 0 / 446.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000793/0.2934, allocations: 255.7 kB / 447 MB, free: 9.527 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00246/0.2958, allocations: 1.595 MB / 448.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.2978, allocations: 1.015 MB / 449.6 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.2978, allocations: 7.938 kB / 449.6 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009514/0.2988, allocations: 0.5438 MB / 450.1 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.2999, allocations: 207.5 kB / 450.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.3101, allocations: 6.113 MB / 456.4 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.3106, allocations: 0.916 MB / 457.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000371/0.311, allocations: 85.2 kB / 457.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.3114, allocations: 263.3 kB / 457.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3114, allocations: 0 / 457.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05108/0.3624, allocations: 23.33 MB / 481 MB, free: 7.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.33, allocations: 11.75 kB / 481 MB, free: 7.52 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches