Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001308/0.001308, allocations: 110 kB / 19.69 MB, free: 2.203 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.001476/0.001476, allocations: 222.5 kB / 23.01 MB, free: 5.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 207.6 MB / 233.8 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2191/0.2191, allocations: 44.24 MB / 330.3 MB, free: 9.516 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 71.12 kB / 467.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1124, allocations: 61.04 MB / 0.5161 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2601/0.3724, allocations: 28.51 MB / 0.544 GB, free: 9.566 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.387, allocations: 13.38 MB / 0.5571 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003892/0.3874, allocations: 21.47 kB / 0.5571 GB, free: 6.977 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007637/0.3881, allocations: 247.7 kB / 0.5573 GB, free: 6.859 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.3992, allocations: 3.667 MB / 0.5609 GB, free: 5.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00716/0.4064, allocations: 2.375 MB / 0.5632 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.4078, allocations: 0.9051 MB / 0.5641 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004428/0.4083, allocations: 212 kB / 0.5643 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009289/0.4092, allocations: 456.2 kB / 0.5647 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.4096, allocations: 286.6 kB / 0.565 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.986e-05/0.4097, allocations: 32.47 kB / 0.565 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.425, allocations: 7.249 MB / 0.5721 GB, free: 1.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.4252, allocations: 112.9 kB / 0.5722 GB, free: 1.562 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.4255, allocations: 216.9 kB / 0.5724 GB, free: 1.434 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.4382, allocations: 4.413 MB / 0.5767 GB, free: 14.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.4383, allocations: 1.531 kB / 0.5767 GB, free: 14.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4383, allocations: 0 / 0.5767 GB, free: 14.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.4383, allocations: 0 / 0.5767 GB, free: 14.62 MB / 430.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.005152/0.4434, allocations: 1.186 MB / 0.5779 GB, free: 13.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.4435, allocations: 10 kB / 0.5779 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.97e-05/0.4436, allocations: 65.66 kB / 0.578 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001739/0.4453, allocations: 213.6 kB / 0.5782 GB, free: 13.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.4459, allocations: 324 kB / 0.5785 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.446, allocations: 30.16 kB / 0.5785 GB, free: 13.33 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.606e-05/0.446, allocations: 27.19 kB / 0.5785 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.4476, allocations: 0.5828 MB / 0.5791 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.4476, allocations: 1.25 kB / 0.5791 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.164e-05/0.4476, allocations: 11.28 kB / 0.5791 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.4477, allocations: 12.48 kB / 0.5791 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.4492, allocations: 0.5236 MB / 0.5796 GB, free: 12.68 MB / 430.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.003414/0.4527, allocations: 2.515 MB / 0.5821 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.4543, allocations: 449.2 kB / 0.5825 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004302/0.4547, allocations: 175.4 kB / 0.5827 GB, free: 10 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04481/0.4995, allocations: 12.67 MB / 0.5951 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.4996, allocations: 38.55 kB / 0.5951 GB, free: 2.652 MB / 430.1 MB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/0.4996, allocations: 0 / 0.5951 GB, free: 2.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=25): time 0.002871/0.5024, allocations: 0.7974 MB / 0.5959 GB, free: 1.848 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.5025, allocations: 114.7 kB / 0.596 GB, free: 1.711 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.5029, allocations: 312.5 kB / 0.5963 GB, free: 1.398 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.5029, allocations: 29.7 kB / 0.5963 GB, free: 1.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.5031, allocations: 212.5 kB / 0.5965 GB, free: 1.152 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.744e-05/0.5032, allocations: 87.25 kB / 0.5966 GB, free: 1.066 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.5033, allocations: 65.69 kB / 0.5967 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.5034, allocations: 338.8 kB / 0.597 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.5038, allocations: 145.2 kB / 0.5971 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004629/0.5043, allocations: 238.9 kB / 0.5974 GB, free: 248 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008232/0.5051, allocations: 357.1 kB / 0.5977 GB, free: 15.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5051, allocations: 0 / 0.5977 GB, free: 15.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001007/0.5061, allocations: 429.8 kB / 0.5981 GB, free: 15.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.5061, allocations: 4 kB / 0.5981 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.5061, allocations: 5.875 kB / 0.5981 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.5062, allocations: 7.938 kB / 0.5981 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/0.5065, allocations: 79.88 kB / 0.5982 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.5065, allocations: 7.938 kB / 0.5982 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.5068, allocations: 48.08 kB / 0.5983 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.5068, allocations: 19.98 kB / 0.5983 GB, free: 15.27 MB / 446.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.0001952/0.507, allocations: 161.7 kB / 0.5984 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.264e-05/0.5071, allocations: 38.2 kB / 0.5985 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.5098, allocations: 1.964 MB / 0.6004 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.422e-05/0.5099, allocations: 31.89 kB / 0.6004 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5099, allocations: 4 kB / 0.6004 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5099, allocations: 3.984 kB / 0.6004 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.5111, allocations: 1.019 MB / 0.6014 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5111, allocations: 0 / 0.6014 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.5114, allocations: 63.94 kB / 0.6015 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.5114, allocations: 0 / 0.6015 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.5114, allocations: 8 kB / 0.6015 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.5114, allocations: 4.812 kB / 0.6015 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5114, allocations: 3.938 kB / 0.6015 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.513, allocations: 1.117 MB / 0.6026 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.5131, allocations: 91.16 kB / 0.6027 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.753e-05/0.5132, allocations: 23.84 kB / 0.6027 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.5135, allocations: 31.84 kB / 0.6027 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.192e-05/0.5136, allocations: 31.94 kB / 0.6027 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.892e-05/0.5136, allocations: 23.23 kB / 0.6028 GB, free: 10.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003949/0.514, allocations: 323.1 kB / 0.6031 GB, free: 10.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.514, allocations: 0 / 0.6031 GB, free: 10.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003756/0.5177, allocations: 0.9981 MB / 0.6041 GB, free: 9.262 MB / 446.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.007375/0.5251, allocations: 2.735 MB / 0.6067 GB, free: 6.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.5265, allocations: 0.5961 MB / 0.6073 GB, free: 5.926 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5265, allocations: 0 / 0.6073 GB, free: 5.926 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006739/0.5271, allocations: 421.7 kB / 0.6077 GB, free: 5.516 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.5284, allocations: 216.5 kB / 0.6079 GB, free: 5.312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.5386, allocations: 5.011 MB / 0.6128 GB, free: 148 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006064/0.5392, allocations: 0.9677 MB / 0.6138 GB, free: 15.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000544/0.5397, allocations: 273.7 kB / 0.614 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.5401, allocations: 259.3 kB / 0.6143 GB, free: 14.63 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5401, allocations: 0 / 0.6143 GB, free: 14.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09593/0.636, allocations: 47.55 MB / 0.6607 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/14.92, allocations: 0 / 0.6607 GB, free: 15.03 MB / 0.4981 GB " [Timeout remaining time 645] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 18.302993359044194]