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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 43.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2294, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007131/0.2365, allocations: 4.883 MB / 427.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.2397, allocations: 1.36 MB / 428.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006215/0.2403, allocations: 11.94 kB / 428.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006277/0.2409, allocations: 154.7 kB / 429 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.2421, allocations: 345.4 kB / 429.4 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006181/0.2427, allocations: 219.7 kB / 429.6 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.2441, allocations: 1.026 MB / 430.6 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003912/0.2445, allocations: 202.4 kB / 430.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006922/0.2452, allocations: 422.5 kB / 431.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007388/0.246, allocations: 450.2 kB / 431.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001918/0.2462, allocations: 84 kB / 431.7 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.2464, allocations: 95.94 kB / 431.8 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.2466, allocations: 191.3 kB / 432 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006045/0.2472, allocations: 473.8 kB / 432.5 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.2484, allocations: 1.085 MB / 433.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2484, allocations: 8 kB / 433.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2484, allocations: 0 / 433.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.246e-05/0.2485, allocations: 0 / 433.6 MB, free: 3.578 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.002534/0.251, allocations: 1.168 MB / 434.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.2511, allocations: 8.031 kB / 434.8 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.2512, allocations: 111.9 kB / 434.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.2514, allocations: 104.4 kB / 435 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009008/0.2523, allocations: 467.3 kB / 435.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.2525, allocations: 160.7 kB / 435.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.673e-05/0.2526, allocations: 52.33 kB / 435.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.254, allocations: 0.8165 MB / 436.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.2541, allocations: 0 / 436.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.2541, allocations: 28 kB / 436.5 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.2541, allocations: 12 kB / 436.5 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.2554, allocations: 0.5048 MB / 437 MB, free: 15.95 MB / 350.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.003688/0.2591, allocations: 2.102 MB / 439.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.2604, allocations: 0.4905 MB / 439.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005775/0.2609, allocations: 230.2 kB / 439.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.004e-05/0.261, allocations: 12.48 kB / 439.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007448/0.2617, allocations: 322.1 kB / 440.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.856e-06/0.2617, allocations: 0 / 440.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004827/0.2666, allocations: 1.322 MB / 441.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004534/0.267, allocations: 0.831 MB / 442.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000817/0.2678, allocations: 0.5901 MB / 442.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.528e-05/0.2679, allocations: 41.7 kB / 442.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.2682, allocations: 349.1 kB / 443.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.2684, allocations: 194.3 kB / 443.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.2687, allocations: 134.3 kB / 443.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.2689, allocations: 374.8 kB / 443.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005709/0.2694, allocations: 217.2 kB / 444.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009528/0.2704, allocations: 0.5217 MB / 444.7 MB, free: 7.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.2716, allocations: 0.5719 MB / 445.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2716, allocations: 0 / 445.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002291/0.2739, allocations: 0.8885 MB / 446.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.785e-05/0.2739, allocations: 59.41 kB / 446.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.274, allocations: 3.938 kB / 446.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007438/0.2747, allocations: 221.5 kB / 446.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006058/0.2753, allocations: 115.8 kB / 446.5 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006915/0.2822, allocations: 4.39 MB / 450.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007904/0.283, allocations: 87.56 kB / 451 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.977e-05/0.2831, allocations: 20 kB / 451 MB, free: 1.086 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.000402/0.2835, allocations: 213.8 kB / 451.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.2837, allocations: 83.47 kB / 451.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001638/0.2838, allocations: 82.84 kB / 451.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.2838, allocations: 4.188 kB / 451.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.2838, allocations: 0 / 451.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002136/0.286, allocations: 1.045 MB / 452.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.2889, allocations: 1.51 MB / 454 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.2889, allocations: 4 kB / 454 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006094/0.2895, allocations: 111.8 kB / 454.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005613/0.2901, allocations: 173.5 kB / 454.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.2901, allocations: 7.984 kB / 454.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005213/0.2953, allocations: 3.738 MB / 458 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2953, allocations: 0 / 458 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.2977, allocations: 1.018 MB / 459 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004006/0.2981, allocations: 151.4 kB / 459.2 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.2983, allocations: 16 kB / 459.2 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006169/0.2989, allocations: 43.95 kB / 459.2 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.299, allocations: 48.41 kB / 459.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.2991, allocations: 19.98 kB / 459.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000591/0.2997, allocations: 415.1 kB / 459.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2997, allocations: 0 / 459.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008454/0.3005, allocations: 255.8 kB / 459.9 MB, free: 7.727 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.002716/0.3032, allocations: 1.597 MB / 461.5 MB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.3054, allocations: 0.9787 MB / 462.5 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.3054, allocations: 8 kB / 462.5 MB, free: 5.062 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3064, allocations: 0.52 MB / 463 MB, free: 4.516 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009802/0.3074, allocations: 207 kB / 463.2 MB, free: 4.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.3183, allocations: 6.135 MB / 469.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.3189, allocations: 0.92 MB / 470.3 MB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.3193, allocations: 81.22 kB / 470.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/0.3196, allocations: 263.4 kB / 470.6 MB, free: 12.72 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3196, allocations: 0 / 470.6 MB, free: 12.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06838/0.388, allocations: 23.38 MB / 494 MB, free: 5.727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14, allocations: 7.062 kB / 494 MB, free: 5.723 MB / 398.1 MB " [Timeout remaining time 646] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.337459394941106]