Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.0008376/0.0008376, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000797/0.000797, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.8735/0.8735, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.636e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003817/0.003834, allocations: 3.951 MB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.005383, allocations: 1.168 MB / 323.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.005591, allocations: 11.88 kB / 323.6 MB, free: 1.199 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000269/0.00586, allocations: 134.8 kB / 323.7 MB, free: 1.066 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003943/0.006255, allocations: 285.5 kB / 324 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002756/0.00653, allocations: 203.5 kB / 324.2 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006182/0.007149, allocations: 0.9605 MB / 325.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.007351, allocations: 161 kB / 325.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003994/0.00775, allocations: 0.5379 MB / 325.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.008005, allocations: 299.1 kB / 326.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.822e-05/0.008073, allocations: 76 kB / 326.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.008143, allocations: 80 kB / 326.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.515e-05/0.008228, allocations: 167.4 kB / 326.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.008411, allocations: 303.3 kB / 326.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006033/0.009014, allocations: 0.9541 MB / 327.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.009017, allocations: 4 kB / 327.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.009019, allocations: 3.938 kB / 327.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.009026, allocations: 0 / 327.7 MB, free: 13.05 MB / 298.7 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.001157/0.01018, allocations: 1.044 MB / 328.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.01022, allocations: 8.922 kB / 328.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.01033, allocations: 99.66 kB / 328.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.01042, allocations: 88.42 kB / 328.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.01091, allocations: 438.4 kB / 329.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003669/0.01128, allocations: 144.4 kB / 329.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.01133, allocations: 56.34 kB / 329.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008161/0.01215, allocations: 1.162 MB / 330.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.01216, allocations: 0 / 330.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.728e-05/0.0122, allocations: 24 kB / 330.7 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.0122, allocations: 12 kB / 330.7 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006128/0.01282, allocations: 455.6 kB / 331.2 MB, free: 9.246 MB / 298.7 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.00179/0.01461, allocations: 1.557 MB / 332.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.01563, allocations: 0.5711 MB / 333.3 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.01595, allocations: 249.1 kB / 333.6 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.01598, allocations: 16.48 kB / 333.6 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.016, allocations: 43.06 kB / 333.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.593e-06/0.016, allocations: 0 / 333.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.002448/0.01845, allocations: 1.24 MB / 334.9 MB, free: 5.473 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.01863, allocations: 0.5799 MB / 335.4 MB, free: 4.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.01904, allocations: 0.5381 MB / 336 MB, free: 4.211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.01907, allocations: 41.7 kB / 336 MB, free: 4.164 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.01922, allocations: 289.1 kB / 336.3 MB, free: 3.871 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/0.01968, allocations: 198.2 kB / 336.5 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.0198, allocations: 110.3 kB / 336.6 MB, free: 3.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.01991, allocations: 374.8 kB / 337 MB, free: 3.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.02021, allocations: 214.9 kB / 337.2 MB, free: 2.973 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/0.02077, allocations: 0.9713 MB / 338.1 MB, free: 1.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006147/0.02138, allocations: 491.8 kB / 338.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.02139, allocations: 0 / 338.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001223/0.02261, allocations: 0.8268 MB / 339.5 MB, free: 432 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.02264, allocations: 37.73 kB / 339.5 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.02265, allocations: 0 / 339.5 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005291/0.02318, allocations: 222.4 kB / 339.7 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003415/0.02352, allocations: 123.8 kB / 339.8 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/0.02807, allocations: 5.258 MB / 345.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000357/0.02842, allocations: 75.62 kB / 345.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.02845, allocations: 23.94 kB / 345.2 MB, free: 10.33 MB / 314.7 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.0002067/0.02866, allocations: 197.7 kB / 345.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.024e-05/0.02873, allocations: 75.53 kB / 345.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.02998, allocations: 0.764 MB / 346.2 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.02998, allocations: 8 kB / 346.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.02999, allocations: 0 / 346.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001202/0.03119, allocations: 1.029 MB / 347.3 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.03296, allocations: 1.371 MB / 348.6 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.03296, allocations: 0 / 348.6 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.03332, allocations: 127.8 kB / 348.7 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004195/0.03374, allocations: 177.5 kB / 348.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.03377, allocations: 12 kB / 348.9 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.03683, allocations: 3.557 MB / 352.5 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.03683, allocations: 0 / 352.5 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.03835, allocations: 1.069 MB / 353.6 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.03855, allocations: 127.4 kB / 353.7 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.748e-05/0.0386, allocations: 12 kB / 353.7 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.03885, allocations: 43.91 kB / 353.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.988e-05/0.03893, allocations: 48.34 kB / 353.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.03895, allocations: 16.19 kB / 353.8 MB, free: 1.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003069/0.03925, allocations: 386.8 kB / 354.2 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03925, allocations: 3.938 kB / 354.2 MB, free: 0.875 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004912/0.03974, allocations: 219.8 kB / 354.4 MB, free: 0.6602 MB / 314.7 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.001728/0.04147, allocations: 1.625 MB / 356 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.04277, allocations: 1.038 MB / 357.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.04277, allocations: 4 kB / 357.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007925/0.04357, allocations: 0.5119 MB / 357.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005458/0.04411, allocations: 190.4 kB / 357.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006812/0.05092, allocations: 6.095 MB / 363.9 MB, free: 6.922 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002007/0.05113, allocations: 298 kB / 364.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.05137, allocations: 81.12 kB / 364.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.0516, allocations: 232.4 kB / 364.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.0516, allocations: 0 / 364.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.08743, allocations: 22.15 MB / 386.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.074/8.161, allocations: 11.92 kB / 386.6 MB, free: 0.5117 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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: 9.830557408742607]