Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 111.7 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 39.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2627, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006214/0.2689, allocations: 4.826 MB / 405.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.2715, allocations: 1.36 MB / 406.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006144/0.2721, allocations: 11.94 kB / 406.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005786/0.2727, allocations: 154.7 kB / 406.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009893/0.2738, allocations: 337.4 kB / 406.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.2743, allocations: 211.6 kB / 407.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.2755, allocations: 1.033 MB / 408.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003852/0.2759, allocations: 289.9 kB / 408.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004697/0.2764, allocations: 402.6 kB / 408.8 MB, free: 168 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004618/0.2769, allocations: 450.2 kB / 409.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.277, allocations: 88 kB / 409.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.2772, allocations: 92 kB / 409.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.2773, allocations: 195.3 kB / 409.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003771/0.2777, allocations: 481.8 kB / 410.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008746/0.2786, allocations: 1.07 MB / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2786, allocations: 0 / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2786, allocations: 0 / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.2786, allocations: 3.938 kB / 411.2 MB, free: 13.8 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.00201/0.2806, allocations: 1.224 MB / 412.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2807, allocations: 12.03 kB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.2808, allocations: 107.9 kB / 412.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.281, allocations: 103.8 kB / 412.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006882/0.2817, allocations: 0.5124 MB / 413.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.2818, allocations: 109.2 kB / 413.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/0.2819, allocations: 52.38 kB / 413.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.2832, allocations: 0.8049 MB / 414.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.2832, allocations: 4 kB / 414.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.652e-05/0.2833, allocations: 28 kB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.2833, allocations: 15.98 kB / 414.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.2845, allocations: 0.5086 MB / 414.6 MB, free: 10.1 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.003054/0.2875, allocations: 2.175 MB / 416.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.2887, allocations: 0.5376 MB / 417.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005661/0.2893, allocations: 258.4 kB / 417.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.476e-05/0.2894, allocations: 13.64 kB / 417.6 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006878/0.2901, allocations: 323 kB / 417.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.687e-06/0.2901, allocations: 3.984 kB / 417.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004756/0.2948, allocations: 1.489 MB / 419.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000283/0.2951, allocations: 0.8311 MB / 420.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006061/0.2958, allocations: 0.5939 MB / 420.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/0.2958, allocations: 41.7 kB / 420.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.2961, allocations: 336.7 kB / 421.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.2962, allocations: 193.2 kB / 421.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.2964, allocations: 134.1 kB / 421.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2966, allocations: 374.8 kB / 421.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/0.2971, allocations: 213 kB / 422.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.2979, allocations: 0.5169 MB / 422.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.2991, allocations: 0.5692 MB / 423.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2991, allocations: 0 / 423.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002144/0.3012, allocations: 0.8974 MB / 424.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/0.3013, allocations: 66 kB / 424.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.3013, allocations: 0 / 424.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006855/0.302, allocations: 217.5 kB / 424.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006048/0.3026, allocations: 115.8 kB / 424.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006384/0.309, allocations: 4.594 MB / 429.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007716/0.3098, allocations: 87.47 kB / 429.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.644e-05/0.3099, allocations: 20 kB / 429.2 MB, free: 10.62 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.0003623/0.3103, allocations: 205.8 kB / 429.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.3104, allocations: 83.09 kB / 429.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.3106, allocations: 78.84 kB / 429.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.3106, allocations: 12 kB / 429.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3106, allocations: 0 / 429.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002028/0.3126, allocations: 1.046 MB / 430.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.3154, allocations: 1.543 MB / 432.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.3155, allocations: 4 kB / 432.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006028/0.3161, allocations: 103.9 kB / 432.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000546/0.3166, allocations: 173.5 kB / 432.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.3167, allocations: 12 kB / 432.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005052/0.3217, allocations: 3.932 MB / 436.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3218, allocations: 0 / 436.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.324, allocations: 1.024 MB / 437.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003908/0.3244, allocations: 216.3 kB / 437.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.3246, allocations: 12 kB / 437.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006369/0.3252, allocations: 51.95 kB / 437.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.3254, allocations: 52.59 kB / 437.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.622e-05/0.3254, allocations: 19.94 kB / 437.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005294/0.326, allocations: 419.1 kB / 438.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.326, allocations: 4 kB / 438.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000834/0.3268, allocations: 251.7 kB / 438.4 MB, free: 0.8789 MB / 350.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.002613/0.3294, allocations: 1.6 MB / 440 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.3315, allocations: 1.019 MB / 441 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.3316, allocations: 4.5 kB / 441 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009658/0.3325, allocations: 0.5472 MB / 441.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009845/0.3335, allocations: 211.1 kB / 441.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.3436, allocations: 6.103 MB / 447.9 MB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.3442, allocations: 0.916 MB / 448.8 MB, free: 6.184 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003588/0.3445, allocations: 89.2 kB / 448.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.3449, allocations: 263.3 kB / 449.1 MB, free: 5.836 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3449, allocations: 0 / 449.1 MB, free: 5.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05157/0.3964, allocations: 23.31 MB / 472.5 MB, free: 14.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.71, allocations: 15.94 kB / 472.5 MB, free: 14.91 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches