Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008411/0.0008411, allocations: 79.69 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.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.000971/0.000971, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.866/0.866, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2324/0.2324, allocations: 32.79 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.123e-05/1.267e-05, allocations: 6.281 kB / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1957/0.1957, allocations: 25.75 MB / 465.3 MB, free: 31.31 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007473/0.2031, allocations: 11.77 MB / 477.1 MB, free: 23.63 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001755/0.2033, allocations: 22.38 kB / 477.1 MB, free: 23.61 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000494/0.2038, allocations: 225.5 kB / 477.3 MB, free: 23.49 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004823/0.2086, allocations: 3.706 MB / 481.1 MB, free: 22 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003447/0.2121, allocations: 2.382 MB / 483.4 MB, free: 20.82 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005238/0.2126, allocations: 0.9104 MB / 484.3 MB, free: 20.37 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.2128, allocations: 209.2 kB / 484.6 MB, free: 20.28 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005166/0.2134, allocations: 0.5518 MB / 485.1 MB, free: 20.04 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.2136, allocations: 232.7 kB / 485.3 MB, free: 19.96 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.2136, allocations: 35.06 kB / 485.4 MB, free: 19.96 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007224/0.2208, allocations: 6.908 MB / 492.3 MB, free: 18.36 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.2209, allocations: 104.6 kB / 492.4 MB, free: 18.3 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.2211, allocations: 159.4 kB / 492.5 MB, free: 18.24 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006791/0.2279, allocations: 5.543 MB / 498.1 MB, free: 16.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2279, allocations: 0 / 498.1 MB, free: 16.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2279, allocations: 0 / 498.1 MB, free: 16.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2279, allocations: 0 / 498.1 MB, free: 16.5 MB / 410.7 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.002656/0.2305, allocations: 1.189 MB / 499.3 MB, free: 15.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2306, allocations: 8.781 kB / 499.3 MB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.2306, allocations: 64.77 kB / 499.3 MB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009007/0.2315, allocations: 213.7 kB / 499.5 MB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004688/0.232, allocations: 321.9 kB / 499.9 MB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.232, allocations: 26.78 kB / 499.9 MB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.2321, allocations: 27.5 kB / 499.9 MB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000912/0.233, allocations: 0.7339 MB / 0.4889 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.233, allocations: 4 kB / 0.4889 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.233, allocations: 15.53 kB / 0.4889 GB, free: 14.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.233, allocations: 7.875 kB / 0.4889 GB, free: 14.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008769/0.2339, allocations: 0.5303 MB / 0.4895 GB, free: 14.81 MB / 410.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.001543/0.2354, allocations: 1.889 MB / 0.4913 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008616/0.2363, allocations: 449.5 kB / 0.4917 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.2365, allocations: 178.5 kB / 0.4919 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.023/0.2595, allocations: 13.2 MB / 0.5048 GB, free: 7.578 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.2596, allocations: 34.56 kB / 0.5048 GB, free: 7.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.2596, allocations: 0 / 0.5048 GB, free: 7.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001456/0.261, allocations: 0.7991 MB / 0.5056 GB, free: 6.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.261, allocations: 110.8 kB / 0.5057 GB, free: 6.598 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.2612, allocations: 308.5 kB / 0.506 GB, free: 6.289 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.2613, allocations: 33.7 kB / 0.506 GB, free: 6.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.2613, allocations: 208.5 kB / 0.5062 GB, free: 6.043 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.195e-05/0.2614, allocations: 91.25 kB / 0.5063 GB, free: 5.953 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.2614, allocations: 73.64 kB / 0.5064 GB, free: 5.875 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.043e-05/0.2615, allocations: 338.8 kB / 0.5067 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.2617, allocations: 145.1 kB / 0.5069 GB, free: 5.395 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.2619, allocations: 290.7 kB / 0.5071 GB, free: 5.062 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.2623, allocations: 357.1 kB / 0.5075 GB, free: 4.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.2623, allocations: 0 / 0.5075 GB, free: 4.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004939/0.2628, allocations: 421 kB / 0.5079 GB, free: 4.262 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2628, allocations: 7.938 kB / 0.5079 GB, free: 4.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2628, allocations: 4 kB / 0.5079 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.2628, allocations: 4 kB / 0.5079 GB, free: 4.246 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.263, allocations: 85.12 kB / 0.508 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.263, allocations: 6.5 kB / 0.508 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.2631, allocations: 55.64 kB / 0.508 GB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.2632, allocations: 16 kB / 0.508 GB, free: 4.09 MB / 410.7 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.0001026/0.2633, allocations: 165.7 kB / 0.5082 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.2633, allocations: 31.81 kB / 0.5082 GB, free: 3.887 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.2645, allocations: 1.985 MB / 0.5102 GB, free: 1.891 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.2645, allocations: 31.94 kB / 0.5102 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2645, allocations: 4 kB / 0.5102 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.2645, allocations: 3.938 kB / 0.5102 GB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000492/0.265, allocations: 0.9611 MB / 0.5111 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.265, allocations: 1.375 kB / 0.5111 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.2652, allocations: 67.94 kB / 0.5112 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.2652, allocations: 3.938 kB / 0.5112 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.2652, allocations: 11.98 kB / 0.5112 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.2652, allocations: 4 kB / 0.5112 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2652, allocations: 4 kB / 0.5112 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/0.266, allocations: 1.107 MB / 0.5123 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.173e-05/0.266, allocations: 91.14 kB / 0.5124 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/0.2661, allocations: 27.78 kB / 0.5124 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.2662, allocations: 31.09 kB / 0.5125 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.691e-05/0.2663, allocations: 31.94 kB / 0.5125 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.2663, allocations: 15.94 kB / 0.5125 GB, free: 15.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005308/0.2668, allocations: 327.1 kB / 0.5128 GB, free: 15.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2668, allocations: 0 / 0.5128 GB, free: 15.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004203/0.271, allocations: 1.01 MB / 0.5138 GB, free: 14.11 MB / 426.7 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.003748/0.2748, allocations: 2.873 MB / 0.5166 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006359/0.2754, allocations: 0.5947 MB / 0.5172 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2754, allocations: 0.625 kB / 0.5172 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003508/0.2758, allocations: 421 kB / 0.5176 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000636/0.2764, allocations: 217.4 kB / 0.5178 GB, free: 9.992 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004865/0.2813, allocations: 4.985 MB / 0.5227 GB, free: 4.852 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.2815, allocations: 374.2 kB / 0.523 GB, free: 4.457 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002891/0.2818, allocations: 271.2 kB / 0.5233 GB, free: 4.199 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.282, allocations: 260.4 kB / 0.5235 GB, free: 3.945 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/0.282, allocations: 3.938 kB / 0.5235 GB, free: 3.941 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05964/0.3416, allocations: 48.06 MB / 0.5705 GB, free: 4.156 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.779/9.12, allocations: 7.922 kB / 0.5705 GB, free: 4.148 MB / 474.7 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 11.402885247953236]