Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001138, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2771, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005243/0.2823, allocations: 4.376 MB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.2843, allocations: 1.25 MB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.2847, allocations: 7.938 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003595/0.285, allocations: 138.8 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000507/0.2856, allocations: 261.8 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000457/0.286, allocations: 195.6 kB / 415 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008542/0.2869, allocations: 0.9297 MB / 415.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.2872, allocations: 250.2 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004345/0.2877, allocations: 370.7 kB / 416.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.2881, allocations: 406.3 kB / 416.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.881e-05/0.2882, allocations: 80 kB / 417 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.2884, allocations: 80 kB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.2885, allocations: 175.4 kB / 417.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003173/0.2888, allocations: 422 kB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000759/0.2896, allocations: 0.9149 MB / 418.5 MB, free: 7.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2896, allocations: 0 / 418.5 MB, free: 7.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2896, allocations: 0 / 418.5 MB, free: 7.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2896, allocations: 0 / 418.5 MB, free: 7.688 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001828/0.2915, allocations: 1.117 MB / 419.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2915, allocations: 12.03 kB / 419.7 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.2916, allocations: 87.7 kB / 419.8 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.2919, allocations: 95.98 kB / 419.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006978/0.2926, allocations: 488.5 kB / 420.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.2927, allocations: 104.9 kB / 420.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.581e-05/0.2928, allocations: 48.38 kB / 420.5 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.2939, allocations: 0.6591 MB / 421.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.2939, allocations: 0 / 421.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.041e-05/0.294, allocations: 28 kB / 421.2 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.294, allocations: 8 kB / 421.2 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.295, allocations: 451.7 kB / 421.6 MB, free: 4.414 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.002809/0.2978, allocations: 1.955 MB / 423.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.2996, allocations: 0.6825 MB / 424.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006172/0.3003, allocations: 272.6 kB / 424.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.3003, allocations: 12.42 kB / 424.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.3004, allocations: 43 kB / 424.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.003e-06/0.3004, allocations: 7.938 kB / 424.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.004834/0.3052, allocations: 1.48 MB / 426.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002105/0.3054, allocations: 0.5683 MB / 426.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005809/0.306, allocations: 0.5381 MB / 427.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.3061, allocations: 41.7 kB / 427.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.3063, allocations: 284.8 kB / 427.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3064, allocations: 189.2 kB / 427.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.3066, allocations: 118.1 kB / 427.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3068, allocations: 374.7 kB / 428.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005281/0.3073, allocations: 189 kB / 428.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006587/0.308, allocations: 419.9 kB / 428.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.309, allocations: 492.5 kB / 429.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3091, allocations: 0 / 429.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002312/0.3114, allocations: 0.8068 MB / 430 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.592e-05/0.3114, allocations: 33.7 kB / 430.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3115, allocations: 4 kB / 430.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.3125, allocations: 222.4 kB / 430.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000708/0.3132, allocations: 127.8 kB / 430.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007502/0.3207, allocations: 5.596 MB / 436 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007086/0.3215, allocations: 83.47 kB / 436.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.468e-05/0.3215, allocations: 20 kB / 436.1 MB, free: 4.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003367/0.3219, allocations: 205.5 kB / 436.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.3221, allocations: 71.28 kB / 436.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.3244, allocations: 0.7734 MB / 437.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.3244, allocations: 15.92 kB / 437.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.3244, allocations: 4 kB / 437.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002206/0.3266, allocations: 1.039 MB / 438.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003315/0.3299, allocations: 1.509 MB / 439.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.33, allocations: 4 kB / 439.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.3307, allocations: 127.8 kB / 439.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008488/0.3316, allocations: 173.5 kB / 440 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.3316, allocations: 12 kB / 440 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005078/0.3367, allocations: 3.791 MB / 443.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.3367, allocations: 8.156 kB / 443.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.3395, allocations: 1.063 MB / 444.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003508/0.3399, allocations: 208.1 kB / 445.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.34, allocations: 16 kB / 445.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005494/0.3406, allocations: 35.91 kB / 445.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.3407, allocations: 52.48 kB / 445.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/0.3408, allocations: 12 kB / 445.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004631/0.3412, allocations: 386.8 kB / 445.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3412, allocations: 0 / 445.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007815/0.342, allocations: 223.7 kB / 445.8 MB, free: 10.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003024/0.3451, allocations: 1.634 MB / 447.4 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.3474, allocations: 1.034 MB / 448.5 MB, free: 7.969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.3474, allocations: 4.188 kB / 448.5 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.3485, allocations: 0.5355 MB / 449 MB, free: 7.402 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008878/0.3494, allocations: 190.7 kB / 449.2 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.36, allocations: 6.013 MB / 455.2 MB, free: 1.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.3605, allocations: 0.8956 MB / 456.1 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000361/0.3608, allocations: 81.12 kB / 456.2 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.3612, allocations: 231.4 kB / 456.4 MB, free: 15.83 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3612, allocations: 0 / 456.4 MB, free: 15.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05181/0.413, allocations: 20.68 MB / 477.1 MB, free: 11.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.82, allocations: 11.17 kB / 477.1 MB, free: 11.48 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches