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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 179.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1974/0.1974, allocations: 44.18 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3209, allocations: 60.81 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02951/0.3505, allocations: 28.12 MB / 0.5459 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.3681, allocations: 13.3 MB / 0.5589 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004542/0.3686, allocations: 11.88 kB / 0.5589 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007783/0.3694, allocations: 254.4 kB / 0.5591 GB, free: 2.316 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.3796, allocations: 3.669 MB / 0.5627 GB, free: 14.65 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007027/0.3866, allocations: 2.372 MB / 0.565 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.3881, allocations: 0.8925 MB / 0.5659 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006996/0.3888, allocations: 248.7 kB / 0.5661 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.3901, allocations: 446.2 kB / 0.5666 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005846/0.3907, allocations: 262.9 kB / 0.5668 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.3908, allocations: 40 kB / 0.5668 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01546/0.4063, allocations: 7.227 MB / 0.5739 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.4066, allocations: 99.66 kB / 0.574 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003876/0.407, allocations: 223 kB / 0.5742 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.419, allocations: 4.416 MB / 0.5785 GB, free: 14.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.4191, allocations: 0 / 0.5785 GB, free: 14.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4191, allocations: 0 / 0.5785 GB, free: 14.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.4191, allocations: 0 / 0.5785 GB, free: 14.43 MB / 446.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.004389/0.4235, allocations: 1.267 MB / 0.5798 GB, free: 13.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.4236, allocations: 12.03 kB / 0.5798 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.4237, allocations: 70.72 kB / 0.5798 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/0.4255, allocations: 208.5 kB / 0.58 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007701/0.4263, allocations: 383.5 kB / 0.5804 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.4264, allocations: 25.03 kB / 0.5804 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.191e-05/0.4264, allocations: 32.12 kB / 0.5805 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.428, allocations: 0.5861 MB / 0.581 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.4281, allocations: 0 / 0.581 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.136e-05/0.4281, allocations: 19.94 kB / 0.581 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.4281, allocations: 12 kB / 0.5811 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.4298, allocations: 0.5211 MB / 0.5816 GB, free: 11.17 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.003265/0.433, allocations: 2.625 MB / 0.5841 GB, free: 8.305 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.4346, allocations: 458.2 kB / 0.5846 GB, free: 7.848 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004601/0.4351, allocations: 200.6 kB / 0.5848 GB, free: 7.648 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05138/0.4865, allocations: 24.31 MB / 0.6085 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.4866, allocations: 42.56 kB / 0.6085 GB, free: 12.39 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.314e-06/0.4866, allocations: 0 / 0.6085 GB, free: 12.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002963/0.4896, allocations: 0.7935 MB / 0.6093 GB, free: 11.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.4897, allocations: 102.8 kB / 0.6094 GB, free: 11.47 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.4901, allocations: 308.5 kB / 0.6097 GB, free: 11.16 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.4901, allocations: 29.7 kB / 0.6097 GB, free: 11.12 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.4903, allocations: 208.5 kB / 0.6099 GB, free: 10.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.926e-05/0.4904, allocations: 95.22 kB / 0.61 GB, free: 10.82 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.4905, allocations: 65.69 kB / 0.6101 GB, free: 10.75 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.4907, allocations: 350.7 kB / 0.6104 GB, free: 10.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.491, allocations: 131.9 kB / 0.6105 GB, free: 10.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.4915, allocations: 235 kB / 0.6108 GB, free: 9.996 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008386/0.4924, allocations: 353.1 kB / 0.6111 GB, free: 9.617 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.4924, allocations: 0 / 0.6111 GB, free: 9.617 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001103/0.4935, allocations: 433.8 kB / 0.6115 GB, free: 9.188 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.4935, allocations: 8.312 kB / 0.6115 GB, free: 9.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4936, allocations: 4 kB / 0.6115 GB, free: 9.176 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.4936, allocations: 11.88 kB / 0.6115 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003381/0.4939, allocations: 83.88 kB / 0.6116 GB, free: 9.082 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.494, allocations: 7.938 kB / 0.6116 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.4943, allocations: 43.75 kB / 0.6117 GB, free: 9.031 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.4943, allocations: 16 kB / 0.6117 GB, free: 9.016 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.0002133/0.4945, allocations: 161.8 kB / 0.6118 GB, free: 8.848 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.4946, allocations: 35.77 kB / 0.6119 GB, free: 8.812 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/0.4973, allocations: 1.897 MB / 0.6137 GB, free: 6.902 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.4973, allocations: 31.94 kB / 0.6138 GB, free: 6.871 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4973, allocations: 0 / 0.6138 GB, free: 6.871 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4973, allocations: 0 / 0.6138 GB, free: 6.871 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.4985, allocations: 1.023 MB / 0.6148 GB, free: 5.797 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.4985, allocations: 4 kB / 0.6148 GB, free: 5.793 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003085/0.4988, allocations: 71.88 kB / 0.6148 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.4989, allocations: 0 / 0.6148 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.4989, allocations: 15.94 kB / 0.6148 GB, free: 5.707 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4989, allocations: 0 / 0.6148 GB, free: 5.707 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4989, allocations: 3.984 kB / 0.6149 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.5006, allocations: 1.077 MB / 0.6159 GB, free: 4.609 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.5008, allocations: 172.2 kB / 0.6161 GB, free: 4.422 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.359e-05/0.5009, allocations: 27.78 kB / 0.6161 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.5011, allocations: 23.97 kB / 0.6161 GB, free: 4.371 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.5012, allocations: 27.95 kB / 0.6161 GB, free: 4.344 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.5013, allocations: 16 kB / 0.6162 GB, free: 4.328 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003947/0.5017, allocations: 327.1 kB / 0.6165 GB, free: 4.008 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.054e-06/0.5017, allocations: 0 / 0.6165 GB, free: 4.008 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003494/0.5052, allocations: 1.006 MB / 0.6175 GB, free: 3 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.007872/0.5131, allocations: 2.708 MB / 0.6201 GB, free: 276 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.5147, allocations: 0.5914 MB / 0.6207 GB, free: 15.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5148, allocations: 0 / 0.6207 GB, free: 15.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.5155, allocations: 0.5125 MB / 0.6212 GB, free: 15.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.5169, allocations: 215.6 kB / 0.6214 GB, free: 14.95 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009526/0.5264, allocations: 4.981 MB / 0.6262 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000536/0.527, allocations: 0.9638 MB / 0.6272 GB, free: 8.844 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005557/0.5276, allocations: 270.6 kB / 0.6274 GB, free: 8.586 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/0.5279, allocations: 259.3 kB / 0.6277 GB, free: 8.332 MB / 494.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5279, allocations: 0 / 0.6277 GB, free: 8.332 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08577/0.6137, allocations: 46.57 MB / 0.6732 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.78, allocations: 4 kB / 0.6732 GB, free: 9.945 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches