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.001186/0.001186, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.001499, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.00118, allocations: 60.28 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09857, allocations: 50.53 MB / 357.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005985/0.1046, allocations: 4.842 MB / 362.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.1071, allocations: 1.394 MB / 363.8 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.1076, allocations: 11.94 kB / 363.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004605/0.1081, allocations: 158.7 kB / 364 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008275/0.1089, allocations: 333.4 kB / 364.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006339/0.1096, allocations: 215.6 kB / 364.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.1108, allocations: 1.019 MB / 365.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004263/0.1112, allocations: 289.9 kB / 365.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005988/0.1119, allocations: 414.5 kB / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006349/0.1125, allocations: 454.1 kB / 366.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.1127, allocations: 91.98 kB / 366.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.1129, allocations: 88 kB / 366.8 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.113, allocations: 191.3 kB / 367 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004787/0.1135, allocations: 481.8 kB / 367.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009199/0.1145, allocations: 1.055 MB / 368.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1145, allocations: 3.984 kB / 368.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1145, allocations: 0 / 368.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.179e-05/0.1145, allocations: 0 / 368.6 MB, free: 3.012 MB / 302.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.002407/0.1169, allocations: 1.216 MB / 369.8 MB, free: 1.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.117, allocations: 8.031 kB / 369.8 MB, free: 1.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001631/0.1172, allocations: 115.8 kB / 369.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.1173, allocations: 95.91 kB / 370 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006826/0.118, allocations: 0.5123 MB / 370.5 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.1182, allocations: 105.3 kB / 370.6 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.75e-05/0.1183, allocations: 52.38 kB / 370.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.169/0.2873, allocations: 0.804 MB / 371.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.2873, allocations: 4.062 kB / 371.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.818e-05/0.2874, allocations: 29.88 kB / 371.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.2875, allocations: 12.73 kB / 371.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.2888, allocations: 0.5022 MB / 372 MB, free: 19.77 MB / 302.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.003257/0.292, allocations: 2.183 MB / 374.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.2934, allocations: 0.5333 MB / 374.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000669/0.2941, allocations: 263 kB / 375 MB, free: 18.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.173e-05/0.2942, allocations: 17.23 kB / 375 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007681/0.2949, allocations: 325.7 kB / 375.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.947e-06/0.295, allocations: 0 / 375.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004856/0.2998, allocations: 1.482 MB / 376.8 MB, free: 17.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002869/0.3001, allocations: 0.8253 MB / 377.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007766/0.3009, allocations: 0.5865 MB / 378.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.362e-05/0.301, allocations: 44.64 kB / 378.2 MB, free: 16.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.3013, allocations: 344.9 kB / 378.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.3014, allocations: 185.6 kB / 378.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.3016, allocations: 132.3 kB / 378.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3017, allocations: 383.1 kB / 379.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005553/0.3023, allocations: 209.6 kB / 379.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006852/0.303, allocations: 0.5225 MB / 380 MB, free: 15.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.3041, allocations: 0.5633 MB / 380.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3041, allocations: 4.969 kB / 380.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002104/0.3062, allocations: 0.8981 MB / 381.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.3063, allocations: 63.44 kB / 381.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3063, allocations: 5.812 kB / 381.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007487/0.307, allocations: 217.9 kB / 381.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006345/0.3077, allocations: 121.4 kB / 381.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/0.3139, allocations: 4.596 MB / 386.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008441/0.3148, allocations: 88.09 kB / 386.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.3148, allocations: 22.67 kB / 386.6 MB, free: 10.52 MB / 302.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.0003327/0.3151, allocations: 226.1 kB / 386.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.3153, allocations: 81.89 kB / 386.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.3154, allocations: 77.34 kB / 386.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.3154, allocations: 5.031 kB / 386.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3155, allocations: 2 kB / 386.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002032/0.3175, allocations: 1.053 MB / 388 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002656/0.3202, allocations: 1.536 MB / 389.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.3202, allocations: 4 kB / 389.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000621/0.3208, allocations: 107.5 kB / 389.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005306/0.3214, allocations: 174.7 kB / 389.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.3214, allocations: 13.5 kB / 389.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004027/0.3255, allocations: 3.938 MB / 393.8 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3255, allocations: 4 kB / 393.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.3277, allocations: 1.021 MB / 394.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.328, allocations: 213.5 kB / 395 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.731e-05/0.3281, allocations: 14.58 kB / 395 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.3287, allocations: 46.14 kB / 395.1 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3288, allocations: 60.81 kB / 395.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.3289, allocations: 14.94 kB / 395.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004447/0.3293, allocations: 420.7 kB / 395.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3293, allocations: 0 / 395.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000815/0.3301, allocations: 254.2 kB / 395.8 MB, free: 4.031 MB / 302.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.002326/0.3325, allocations: 1.592 MB / 397.4 MB, free: 2.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.3348, allocations: 1.04 MB / 398.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.3348, allocations: 1.375 kB / 398.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009869/0.3358, allocations: 0.5439 MB / 399 MB, free: 1.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.3368, allocations: 207.3 kB / 399.2 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009593/0.3464, allocations: 6.403 MB / 405.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.347, allocations: 0.92 MB / 406.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000423/0.3474, allocations: 81.22 kB / 406.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.3477, allocations: 263.3 kB / 406.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3477, allocations: 0 / 406.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05478/0.4025, allocations: 22.46 MB / 429.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.65, allocations: 19.8 kB / 429.3 MB, free: 5.672 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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