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.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.001718/0.001718, allocations: 113.6 kB / 17.13 MB, free: 5.949 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.00191/0.00191, allocations: 192.7 kB / 20.08 MB, free: 3.012 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.417/1.417, allocations: 207.6 MB / 230.5 MB, free: 4.027 MB / 174.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.3468/0.3468, allocations: 44.24 MB / 326.5 MB, free: 6.859 MB / 254.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.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(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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 71.89 kB / 462.2 MB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2705, allocations: 61 MB / 0.5109 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02901/0.2995, allocations: 28.29 MB / 0.5385 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01804/0.3176, allocations: 13.33 MB / 0.5516 GB, free: 5.266 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003439/0.3179, allocations: 11.94 kB / 0.5516 GB, free: 5.254 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007754/0.3187, allocations: 258.4 kB / 0.5518 GB, free: 5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00995/0.3286, allocations: 3.654 MB / 0.5554 GB, free: 1.336 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006424/0.335, allocations: 2.379 MB / 0.5577 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.3363, allocations: 0.8921 MB / 0.5586 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004236/0.3368, allocations: 220.7 kB / 0.5588 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008065/0.3376, allocations: 442.2 kB / 0.5592 GB, free: 13.4 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003873/0.338, allocations: 286.8 kB / 0.5595 GB, free: 13.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.338, allocations: 35.94 kB / 0.5595 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01432/0.3523, allocations: 7.238 MB / 0.5666 GB, free: 5.836 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002265/0.3526, allocations: 99.66 kB / 0.5667 GB, free: 5.738 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003528/0.3529, allocations: 219 kB / 0.5669 GB, free: 5.523 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.364, allocations: 4.412 MB / 0.5712 GB, free: 1.102 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.364, allocations: 0 / 0.5712 GB, free: 1.102 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.364, allocations: 0 / 0.5712 GB, free: 1.102 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.364, allocations: 0 / 0.5712 GB, free: 1.102 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.003242/0.3673, allocations: 1.267 MB / 0.5724 GB, free: 15.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3673, allocations: 15.89 kB / 0.5724 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.19e-05/0.3674, allocations: 62.73 kB / 0.5725 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00177/0.3692, allocations: 212.5 kB / 0.5727 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006626/0.3698, allocations: 383.5 kB / 0.5731 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.3699, allocations: 25.03 kB / 0.5731 GB, free: 15.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.3699, allocations: 32.12 kB / 0.5731 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.3715, allocations: 0.5823 MB / 0.5737 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3715, allocations: 0 / 0.5737 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.981e-05/0.3716, allocations: 12 kB / 0.5737 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3716, allocations: 8 kB / 0.5737 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.3733, allocations: 0.5328 MB / 0.5742 GB, free: 13.84 MB / 446.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.003629/0.3769, allocations: 2.625 MB / 0.5768 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.3786, allocations: 446.1 kB / 0.5772 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004519/0.379, allocations: 169.2 kB / 0.5774 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05381/0.4328, allocations: 24.3 MB / 0.6011 GB, free: 15.17 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/0.4329, allocations: 38.56 kB / 0.6012 GB, free: 15.12 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.884e-06/0.4329, allocations: 0 / 0.6012 GB, free: 15.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003067/0.436, allocations: 0.7959 MB / 0.6019 GB, free: 14.32 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.909e-05/0.436, allocations: 110.8 kB / 0.602 GB, free: 14.19 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004469/0.4365, allocations: 308.5 kB / 0.6023 GB, free: 13.89 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.4365, allocations: 33.64 kB / 0.6024 GB, free: 13.85 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.4367, allocations: 208.5 kB / 0.6026 GB, free: 13.64 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.281e-05/0.4368, allocations: 91.2 kB / 0.6026 GB, free: 13.55 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.4369, allocations: 77.62 kB / 0.6027 GB, free: 13.47 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.4371, allocations: 334.8 kB / 0.603 GB, free: 13.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.4375, allocations: 143.9 kB / 0.6032 GB, free: 12.99 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004817/0.438, allocations: 234.8 kB / 0.6034 GB, free: 12.72 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008894/0.4389, allocations: 361.9 kB / 0.6037 GB, free: 12.34 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.4389, allocations: 4 kB / 0.6038 GB, free: 12.33 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001035/0.4399, allocations: 425 kB / 0.6042 GB, free: 11.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.44, allocations: 4 kB / 0.6042 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.44, allocations: 4 kB / 0.6042 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.44, allocations: 7.938 kB / 0.6042 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.4403, allocations: 83.89 kB / 0.6043 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.4403, allocations: 8.297 kB / 0.6043 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.4406, allocations: 47.72 kB / 0.6043 GB, free: 11.76 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/0.4406, allocations: 19.98 kB / 0.6043 GB, free: 11.74 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.0002173/0.4409, allocations: 153.8 kB / 0.6045 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.339e-05/0.4409, allocations: 31.81 kB / 0.6045 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.4439, allocations: 1.897 MB / 0.6064 GB, free: 9.633 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.455e-05/0.444, allocations: 27.95 kB / 0.6064 GB, free: 9.605 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.444, allocations: 4 kB / 0.6064 GB, free: 9.602 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.444, allocations: 3.984 kB / 0.6064 GB, free: 9.598 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.4454, allocations: 1.016 MB / 0.6074 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.4454, allocations: 0 / 0.6074 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.4457, allocations: 71.88 kB / 0.6075 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4458, allocations: 4 kB / 0.6075 GB, free: 8.457 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.4458, allocations: 11.94 kB / 0.6075 GB, free: 8.445 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4458, allocations: 3.938 kB / 0.6075 GB, free: 8.441 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4458, allocations: 4 kB / 0.6075 GB, free: 8.438 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.4476, allocations: 1.085 MB / 0.6085 GB, free: 7.332 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.4478, allocations: 168.2 kB / 0.6087 GB, free: 7.148 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/0.4478, allocations: 23.83 kB / 0.6087 GB, free: 7.125 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.4481, allocations: 31.97 kB / 0.6087 GB, free: 7.094 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.4482, allocations: 31.89 kB / 0.6088 GB, free: 7.062 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.4483, allocations: 12 kB / 0.6088 GB, free: 7.051 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004398/0.4487, allocations: 335 kB / 0.6091 GB, free: 6.727 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4487, allocations: 0 / 0.6091 GB, free: 6.727 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003135/0.4518, allocations: 1.002 MB / 0.6101 GB, free: 5.723 MB / 478.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.007275/0.4591, allocations: 2.712 MB / 0.6127 GB, free: 2.988 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.4607, allocations: 0.5826 MB / 0.6133 GB, free: 2.402 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4607, allocations: 0 / 0.6133 GB, free: 2.402 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006786/0.4613, allocations: 409.8 kB / 0.6137 GB, free: 2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.4625, allocations: 217.4 kB / 0.6139 GB, free: 1.789 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009027/0.4715, allocations: 4.97 MB / 0.6188 GB, free: 12.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007506/0.4723, allocations: 0.9638 MB / 0.6197 GB, free: 11.68 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005288/0.4728, allocations: 280.8 kB / 0.62 GB, free: 11.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003364/0.4731, allocations: 255.3 kB / 0.6202 GB, free: 11.16 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4732, allocations: 4 kB / 0.6202 GB, free: 11.16 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3176/0.7908, allocations: 46.58 MB / 0.6657 GB, free: 105.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.77, allocations: 8.812 kB / 0.6657 GB, free: 105.3 MB / 0.4981 GB " [Timeout remaining time 647] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.079894453287125]