Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 203.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2261/0.2261, allocations: 46.96 MB / 360.9 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 63.91 kB / 0.4961 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3286, allocations: 66.03 MB / 0.5606 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03658/0.3652, allocations: 25.91 MB / 0.5859 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.3817, allocations: 11.76 MB / 0.5974 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003195/0.382, allocations: 11.88 kB / 0.5974 GB, free: 14.39 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007585/0.3828, allocations: 234.5 kB / 0.5976 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009628/0.3924, allocations: 3.651 MB / 0.6012 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006247/0.3987, allocations: 2.364 MB / 0.6035 GB, free: 8.152 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.4, allocations: 0.8964 MB / 0.6044 GB, free: 7.254 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.4004, allocations: 208.9 kB / 0.6046 GB, free: 7.043 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007708/0.4011, allocations: 442.2 kB / 0.605 GB, free: 6.609 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004017/0.4015, allocations: 286.8 kB / 0.6053 GB, free: 6.328 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-05/0.4016, allocations: 32 kB / 0.6053 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01299/0.4146, allocations: 7.196 MB / 0.6123 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.4148, allocations: 107.6 kB / 0.6124 GB, free: 14.99 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.415, allocations: 183.2 kB / 0.6126 GB, free: 14.81 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01018/0.4252, allocations: 4.42 MB / 0.6169 GB, free: 10.38 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4252, allocations: 0 / 0.6169 GB, free: 10.38 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4252, allocations: 0 / 0.6169 GB, free: 10.38 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.4252, allocations: 3.984 kB / 0.6169 GB, free: 10.37 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003143/0.4284, allocations: 1.184 MB / 0.6181 GB, free: 9.152 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.4284, allocations: 8.031 kB / 0.6181 GB, free: 9.145 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.663e-05/0.4285, allocations: 66.73 kB / 0.6181 GB, free: 9.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001706/0.4302, allocations: 212.5 kB / 0.6183 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.4308, allocations: 317.2 kB / 0.6186 GB, free: 8.523 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.4308, allocations: 29.03 kB / 0.6187 GB, free: 8.496 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.4309, allocations: 32.12 kB / 0.6187 GB, free: 8.465 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.4325, allocations: 0.7291 MB / 0.6194 GB, free: 7.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.4325, allocations: 3.938 kB / 0.6194 GB, free: 7.656 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-05/0.4326, allocations: 16 kB / 0.6194 GB, free: 7.641 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.4326, allocations: 12 kB / 0.6194 GB, free: 7.629 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.4342, allocations: 0.5176 MB / 0.62 GB, free: 7.109 MB / 462.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.003091/0.4373, allocations: 1.91 MB / 0.6218 GB, free: 5.117 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.4389, allocations: 446.1 kB / 0.6222 GB, free: 4.672 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004618/0.4394, allocations: 176.7 kB / 0.6224 GB, free: 4.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04629/0.4856, allocations: 13.2 MB / 0.6353 GB, free: 7.281 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.4857, allocations: 42.5 kB / 0.6353 GB, free: 7.23 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.224e-06/0.4857, allocations: 0 / 0.6353 GB, free: 7.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002984/0.4887, allocations: 0.7897 MB / 0.6361 GB, free: 6.434 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4888, allocations: 102.8 kB / 0.6362 GB, free: 6.309 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.4892, allocations: 320.4 kB / 0.6365 GB, free: 5.992 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.4893, allocations: 25.7 kB / 0.6365 GB, free: 5.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.4894, allocations: 212.5 kB / 0.6367 GB, free: 5.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.001e-05/0.4895, allocations: 91.22 kB / 0.6368 GB, free: 5.66 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.4896, allocations: 65.69 kB / 0.6369 GB, free: 5.59 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4898, allocations: 342.8 kB / 0.6372 GB, free: 5.246 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/0.4902, allocations: 143.8 kB / 0.6374 GB, free: 5.105 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004901/0.4907, allocations: 283.3 kB / 0.6376 GB, free: 4.777 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008053/0.4915, allocations: 365.9 kB / 0.638 GB, free: 4.387 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4915, allocations: 4 kB / 0.638 GB, free: 4.383 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001011/0.4925, allocations: 421.2 kB / 0.6384 GB, free: 3.965 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.4925, allocations: 8 kB / 0.6384 GB, free: 3.957 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.4925, allocations: 4 kB / 0.6384 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.4926, allocations: 7.938 kB / 0.6384 GB, free: 3.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.4929, allocations: 79.88 kB / 0.6385 GB, free: 3.867 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.4929, allocations: 4 kB / 0.6385 GB, free: 3.863 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002753/0.4932, allocations: 51.7 kB / 0.6385 GB, free: 3.812 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.4932, allocations: 12.09 kB / 0.6385 GB, free: 3.801 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.4934, allocations: 173.7 kB / 0.6387 GB, free: 3.621 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.025e-05/0.4935, allocations: 31.81 kB / 0.6387 GB, free: 3.59 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002628/0.4961, allocations: 1.968 MB / 0.6407 GB, free: 1.613 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-05/0.4962, allocations: 35.94 kB / 0.6407 GB, free: 1.578 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.4962, allocations: 0 / 0.6407 GB, free: 1.578 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4962, allocations: 0 / 0.6407 GB, free: 1.578 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.4972, allocations: 0.9526 MB / 0.6416 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4973, allocations: 3.938 kB / 0.6416 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.4976, allocations: 75.88 kB / 0.6417 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4976, allocations: 4 kB / 0.6417 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.4976, allocations: 11.92 kB / 0.6417 GB, free: 496 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.4976, allocations: 4 kB / 0.6417 GB, free: 492 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4976, allocations: 0 / 0.6417 GB, free: 492 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.4993, allocations: 1.108 MB / 0.6428 GB, free: 15.35 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.4994, allocations: 91.09 kB / 0.6429 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.4995, allocations: 39.66 kB / 0.6429 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.4997, allocations: 27.97 kB / 0.6429 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.4998, allocations: 31.94 kB / 0.643 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.4999, allocations: 12 kB / 0.643 GB, free: 15.15 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003883/0.5003, allocations: 323.1 kB / 0.6433 GB, free: 14.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5003, allocations: 4 kB / 0.6433 GB, free: 14.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003081/0.5033, allocations: 1.006 MB / 0.6443 GB, free: 13.83 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006182/0.5095, allocations: 2.737 MB / 0.647 GB, free: 11.06 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.5108, allocations: 0.5947 MB / 0.6475 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5108, allocations: 0 / 0.6475 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006527/0.5114, allocations: 421 kB / 0.6479 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.5126, allocations: 215.5 kB / 0.6481 GB, free: 9.852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008826/0.5214, allocations: 5.011 MB / 0.653 GB, free: 4.691 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.5218, allocations: 370.2 kB / 0.6534 GB, free: 4.301 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005067/0.5223, allocations: 270.8 kB / 0.6536 GB, free: 4.039 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003499/0.5226, allocations: 259.3 kB / 0.6539 GB, free: 3.785 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5226, allocations: 4 kB / 0.6539 GB, free: 3.781 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09193/0.6146, allocations: 48.19 MB / 0.701 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.65, allocations: 18.66 kB / 0.701 GB, free: 3.852 MB / 0.5294 GB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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: 17.228029602003517]