Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_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.001134/0.001134, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001212/0.001212, allocations: 184.2 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 52.38 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07961/0.08085, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006584/0.08746, allocations: 4.838 MB / 379.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1935/0.2809, allocations: 1.394 MB / 380.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003537/0.2813, allocations: 9.594 kB / 380.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003629/0.2817, allocations: 150.7 kB / 381 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.2824, allocations: 335 kB / 381.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005086/0.2829, allocations: 220.1 kB / 381.6 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009069/0.2839, allocations: 1.039 MB / 382.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.2843, allocations: 293.8 kB / 382.9 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005336/0.2848, allocations: 411.8 kB / 383.3 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004575/0.2853, allocations: 446.5 kB / 383.7 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.2854, allocations: 87.53 kB / 383.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.2856, allocations: 90.78 kB / 383.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.2858, allocations: 196 kB / 384.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.2861, allocations: 476.2 kB / 384.6 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009881/0.2871, allocations: 1.083 MB / 385.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2871, allocations: 0.5625 kB / 385.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2872, allocations: 0 / 385.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.2872, allocations: 0 / 385.6 MB, free: 7.75 MB / 318.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.001977/0.2892, allocations: 1.218 MB / 386.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2892, allocations: 9.844 kB / 386.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/0.2894, allocations: 112.2 kB / 387 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.2895, allocations: 97.41 kB / 387.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007336/0.2903, allocations: 0.5209 MB / 387.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.2904, allocations: 99.91 kB / 387.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.219e-05/0.2905, allocations: 56.88 kB / 387.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.2918, allocations: 0.8082 MB / 388.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.2918, allocations: 2.078 kB / 388.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.2919, allocations: 24.16 kB / 388.6 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.2919, allocations: 12.81 kB / 388.6 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.293, allocations: 0.5062 MB / 389.1 MB, free: 5.586 MB / 318.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.003252/0.2963, allocations: 2.18 MB / 391.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2976, allocations: 0.5284 MB / 391.8 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005811/0.2982, allocations: 263.8 kB / 392.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.72e-05/0.2982, allocations: 11.52 kB / 392.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007558/0.299, allocations: 325.8 kB / 392.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.299, allocations: 0 / 392.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005029/0.304, allocations: 1.49 MB / 393.9 MB, free: 3.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002105/0.3043, allocations: 0.8218 MB / 394.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007939/0.3051, allocations: 0.5883 MB / 395.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.3052, allocations: 44.3 kB / 395.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.3055, allocations: 340.6 kB / 395.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.3056, allocations: 188.6 kB / 395.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.3058, allocations: 128.2 kB / 396 MB, free: 1.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.306, allocations: 379.5 kB / 396.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/0.3065, allocations: 212.7 kB / 396.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007137/0.3072, allocations: 0.5189 MB / 397.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.3083, allocations: 0.5675 MB / 397.6 MB, free: 200 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3083, allocations: 0.6562 kB / 397.6 MB, free: 200 kB / 318.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002224/0.3105, allocations: 0.9008 MB / 398.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.855e-05/0.3106, allocations: 59.94 kB / 398.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3106, allocations: 0 / 398.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007335/0.3113, allocations: 225 kB / 398.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005993/0.3119, allocations: 116.9 kB / 398.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/0.3183, allocations: 4.589 MB / 403.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009292/0.3193, allocations: 89.92 kB / 403.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/0.3193, allocations: 22.39 kB / 403.6 MB, free: 11.93 MB / 334.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.000378/0.3197, allocations: 212.9 kB / 403.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.3199, allocations: 79.88 kB / 403.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.32, allocations: 78.38 kB / 404 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.32, allocations: 5.906 kB / 404 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.32, allocations: 0 / 404 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002027/0.322, allocations: 1.054 MB / 405.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003001/0.3251, allocations: 1.546 MB / 406.6 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3251, allocations: 0 / 406.6 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/0.3257, allocations: 106.1 kB / 406.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005549/0.3262, allocations: 180.5 kB / 406.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.727e-05/0.3263, allocations: 15.09 kB / 406.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004911/0.3312, allocations: 3.927 MB / 410.8 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3312, allocations: 0 / 410.8 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.3338, allocations: 1.021 MB / 411.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005184/0.3343, allocations: 221.2 kB / 412.1 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.3345, allocations: 18.28 kB / 412.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007095/0.3352, allocations: 45.78 kB / 412.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.3354, allocations: 54.8 kB / 412.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.3355, allocations: 14.41 kB / 412.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006377/0.3361, allocations: 419.9 kB / 412.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3361, allocations: 0.8125 kB / 412.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001225/0.3373, allocations: 262.1 kB / 412.9 MB, free: 4.914 MB / 334.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.002873/0.3402, allocations: 1.598 MB / 414.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.3423, allocations: 1.024 MB / 415.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.3424, allocations: 2.844 kB / 415.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009937/0.3434, allocations: 0.5387 MB / 416 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.3447, allocations: 205.6 kB / 416.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.3562, allocations: 6.125 MB / 422.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006218/0.3568, allocations: 0.92 MB / 423.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005031/0.3573, allocations: 81.22 kB / 423.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003437/0.3577, allocations: 271.3 kB / 423.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3577, allocations: 0 / 423.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05768/0.4154, allocations: 23.3 MB / 446.9 MB, free: 4.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.48, allocations: 7.938 kB / 446.9 MB, free: 4.711 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches