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.001501/0.001501, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.001493/0.001493, allocations: 197 kB / 21.43 MB, free: 1.609 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.349/1.349, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 44.03 kB / 366.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08842, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00523/0.09365, allocations: 4.388 MB / 422.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.09552, allocations: 1.211 MB / 424.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.09572, allocations: 11.94 kB / 424.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.09605, allocations: 138.8 kB / 424.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004733/0.09652, allocations: 269.8 kB / 424.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.09689, allocations: 199.6 kB / 424.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008966/0.09779, allocations: 0.929 MB / 425.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.09806, allocations: 172.6 kB / 425.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.09846, allocations: 370.6 kB / 426.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004326/0.09889, allocations: 402.3 kB / 426.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.099, allocations: 83.94 kB / 426.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.09912, allocations: 76 kB / 426.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.09926, allocations: 163.5 kB / 426.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003547/0.09961, allocations: 426 kB / 427.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008863/0.1005, allocations: 0.9221 MB / 428.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1005, allocations: 0 / 428.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1005, allocations: 0 / 428.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.1005, allocations: 0 / 428.2 MB, free: 2.848 MB / 350.1 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.00193/0.1024, allocations: 1.132 MB / 429.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1025, allocations: 8.031 kB / 429.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.964e-05/0.1025, allocations: 25.12 kB / 429.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001388/0.1027, allocations: 99.64 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.1028, allocations: 96.42 kB / 429.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006704/0.1035, allocations: 489.1 kB / 430 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.1036, allocations: 101 kB / 430.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.532e-05/0.1037, allocations: 60.02 kB / 430.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1048, allocations: 0.6593 MB / 430.8 MB, free: 0 / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.1048, allocations: 0 / 430.8 MB, free: 0 / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.1049, allocations: 28.05 kB / 430.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.1049, allocations: 12 kB / 430.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.106, allocations: 459.7 kB / 431.3 MB, free: 15.51 MB / 366.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.002997/0.109, allocations: 1.995 MB / 433.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.1108, allocations: 0.6564 MB / 434 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005669/0.1114, allocations: 250.4 kB / 434.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.927e-05/0.1114, allocations: 20.55 kB / 434.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.1114, allocations: 40.44 kB / 434.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=60): time 1.563e-06/0.1114, allocations: 0 / 434.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01772/0.1292, allocations: 5.007 MB / 439.3 MB, free: 7.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003207/0.1324, allocations: 3.026 MB / 442.3 MB, free: 3.953 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000657/0.133, allocations: 0.5383 MB / 442.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.1331, allocations: 41.7 kB / 442.9 MB, free: 3.359 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.1333, allocations: 289.8 kB / 443.2 MB, free: 3.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.1336, allocations: 341 kB / 443.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.134, allocations: 166.6 kB / 443.7 MB, free: 2.562 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.1341, allocations: 382.8 kB / 444 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.1352, allocations: 437.8 kB / 444.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.1365, allocations: 0.6656 MB / 445.1 MB, free: 1.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/0.1387, allocations: 0.9703 MB / 446.1 MB, free: 12 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1387, allocations: 0 / 446.1 MB, free: 12 kB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.1536/0.2923, allocations: 1.677 MB / 447.8 MB, free: 29.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.2923, allocations: 32.67 kB / 447.8 MB, free: 29.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2923, allocations: 0 / 447.8 MB, free: 29.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002768/0.2951, allocations: 0.6528 MB / 448.5 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009432/0.2961, allocations: 193.4 kB / 448.7 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01241/0.3085, allocations: 11.51 MB / 460.2 MB, free: 21.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.3097, allocations: 87.12 kB / 460.3 MB, free: 21.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.132e-05/0.3098, allocations: 30.52 kB / 460.3 MB, free: 21.11 MB / 366.1 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 (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,2,60.0%), (1,1,100.0%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003923/0.3102, allocations: 219 kB / 460.5 MB, free: 20.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.3104, allocations: 90.38 kB / 460.6 MB, free: 20.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005163/0.3155, allocations: 1.67 MB / 462.3 MB, free: 20.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.3155, allocations: 13.78 kB / 462.3 MB, free: 20.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3155, allocations: 5.219 kB / 462.3 MB, free: 20.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004578/0.3201, allocations: 1.898 MB / 464.2 MB, free: 19.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006701/0.3268, allocations: 2.997 MB / 467.2 MB, free: 17.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3268, allocations: 1.031 kB / 467.2 MB, free: 17.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009313/0.3278, allocations: 177.8 kB / 467.3 MB, free: 17.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002907/0.3307, allocations: 0.7034 MB / 468 MB, free: 17.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.786e-05/0.3307, allocations: 25.95 kB / 468.1 MB, free: 17.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/0.3422, allocations: 10.32 MB / 478.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001644/0.3438, allocations: 2.256 MB / 480.6 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006158/0.35, allocations: 2.345 MB / 483 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003873/0.3504, allocations: 256.7 kB / 483.2 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3505, allocations: 25.89 kB / 483.3 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008443/0.3513, allocations: 65.33 kB / 483.3 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/0.3516, allocations: 106.2 kB / 483.4 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.119e-05/0.3516, allocations: 25.36 kB / 483.5 MB, free: 5.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003843/0.352, allocations: 385.4 kB / 483.8 MB, free: 5.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.352, allocations: 0 / 483.8 MB, free: 5.613 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001182/0.3532, allocations: 345.1 kB / 484.2 MB, free: 5.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 ($STATESET1.x,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 (63): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,2,60.0%), (1,1,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,10), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006114/0.3593, allocations: 2.938 MB / 487.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003646/0.363, allocations: 1.953 MB / 489.1 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.363, allocations: 1.188 kB / 489.1 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.3652, allocations: 1.274 MB / 490.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008513/0.3661, allocations: 207.5 kB / 490.5 MB, free: 1.219 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/0.3831, allocations: 8.871 MB / 499.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.3837, allocations: 0.9641 MB / 0.4887 GB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004515/0.3841, allocations: 98.69 kB / 0.4887 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004251/0.3846, allocations: 287.3 kB / 0.489 GB, free: 8.715 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3846, allocations: 0 / 0.489 GB, free: 8.715 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07319/0.4578, allocations: 29.18 MB / 0.5175 GB, free: 11.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.66, allocations: 10.97 kB / 0.5175 GB, free: 11.91 MB / 414.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/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: 16.162291639018804]