Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 79.86 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3357, allocations: 62.43 MB / 0.5305 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.031/0.3667, allocations: 28.26 MB / 0.5581 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.3824, allocations: 13.3 MB / 0.5711 GB, free: 7.992 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004171/0.3829, allocations: 11.94 kB / 0.5711 GB, free: 7.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007653/0.3837, allocations: 250.4 kB / 0.5713 GB, free: 7.734 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009397/0.3931, allocations: 3.68 MB / 0.5749 GB, free: 4.055 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00625/0.3994, allocations: 2.371 MB / 0.5773 GB, free: 1.684 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.4006, allocations: 0.8964 MB / 0.5781 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.401, allocations: 248.7 kB / 0.5784 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008477/0.4019, allocations: 446.2 kB / 0.5788 GB, free: 104 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.4023, allocations: 266.9 kB / 0.579 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.571e-05/0.4025, allocations: 35.94 kB / 0.5791 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01444/0.4169, allocations: 7.239 MB / 0.5862 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001986/0.4171, allocations: 99.72 kB / 0.5862 GB, free: 8.461 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.4175, allocations: 222.9 kB / 0.5865 GB, free: 8.242 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01125/0.4288, allocations: 4.423 MB / 0.5908 GB, free: 3.809 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4288, allocations: 0 / 0.5908 GB, free: 3.809 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4288, allocations: 0 / 0.5908 GB, free: 3.809 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.909e-05/0.4288, allocations: 4 kB / 0.5908 GB, free: 3.805 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.003246/0.4321, allocations: 1.267 MB / 0.592 GB, free: 2.484 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.4322, allocations: 8.031 kB / 0.592 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.417e-05/0.4323, allocations: 70.72 kB / 0.5921 GB, free: 2.398 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.4341, allocations: 212.5 kB / 0.5923 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006912/0.4348, allocations: 379.5 kB / 0.5927 GB, free: 1.785 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.4348, allocations: 29.03 kB / 0.5927 GB, free: 1.758 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.4349, allocations: 28.12 kB / 0.5927 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.4365, allocations: 0.59 MB / 0.5933 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4366, allocations: 0 / 0.5933 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/0.4366, allocations: 12 kB / 0.5933 GB, free: 1.086 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4366, allocations: 8 kB / 0.5933 GB, free: 1.078 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.4382, allocations: 0.5289 MB / 0.5938 GB, free: 0.5469 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.003246/0.4415, allocations: 2.625 MB / 0.5964 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.4431, allocations: 466.1 kB / 0.5968 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004291/0.4435, allocations: 188.7 kB / 0.597 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04908/0.4926, allocations: 26.88 MB / 0.6233 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.4927, allocations: 34.56 kB / 0.6233 GB, free: 14.69 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 1.983e-06/0.4927, allocations: 4 kB / 0.6233 GB, free: 14.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002898/0.4956, allocations: 0.7897 MB / 0.6241 GB, free: 13.89 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.319e-05/0.4957, allocations: 106.8 kB / 0.6242 GB, free: 13.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004582/0.4962, allocations: 308.5 kB / 0.6245 GB, free: 13.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.4962, allocations: 33.7 kB / 0.6245 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.4964, allocations: 212.5 kB / 0.6247 GB, free: 13.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.4965, allocations: 87.2 kB / 0.6248 GB, free: 13.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.4967, allocations: 69.69 kB / 0.6249 GB, free: 13.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4969, allocations: 346.8 kB / 0.6252 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003916/0.4973, allocations: 135.9 kB / 0.6253 GB, free: 12.56 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004729/0.4977, allocations: 235.8 kB / 0.6255 GB, free: 12.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008267/0.4986, allocations: 358 kB / 0.6259 GB, free: 11.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.4986, allocations: 4 kB / 0.6259 GB, free: 11.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00101/0.4996, allocations: 428.9 kB / 0.6263 GB, free: 11.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.4996, allocations: 8 kB / 0.6263 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.4997, allocations: 4 kB / 0.6263 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.4997, allocations: 7.938 kB / 0.6263 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003254/0.5, allocations: 80.2 kB / 0.6264 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.5, allocations: 11.92 kB / 0.6264 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.5004, allocations: 47.77 kB / 0.6264 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.5004, allocations: 11.98 kB / 0.6265 GB, free: 11.31 MB / 494.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.0001811/0.5006, allocations: 153.8 kB / 0.6266 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.522e-05/0.5007, allocations: 39.77 kB / 0.6266 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0026/0.5033, allocations: 1.908 MB / 0.6285 GB, free: 9.191 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/0.5034, allocations: 27.95 kB / 0.6285 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.5034, allocations: 0 / 0.6285 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.5034, allocations: 11.92 kB / 0.6285 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.5044, allocations: 1.012 MB / 0.6295 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.5044, allocations: 3.984 kB / 0.6295 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002922/0.5047, allocations: 71.94 kB / 0.6296 GB, free: 8.016 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.5047, allocations: 0 / 0.6296 GB, free: 8.016 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.5048, allocations: 15.94 kB / 0.6296 GB, free: 8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.5048, allocations: 0 / 0.6296 GB, free: 8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5048, allocations: 4 kB / 0.6296 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.5062, allocations: 1.089 MB / 0.6307 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.5064, allocations: 164.3 kB / 0.6308 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.528e-05/0.5065, allocations: 23.78 kB / 0.6309 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.5068, allocations: 23.97 kB / 0.6309 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.229e-05/0.5069, allocations: 35.95 kB / 0.6309 GB, free: 6.629 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-05/0.5069, allocations: 8 kB / 0.6309 GB, free: 6.621 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003725/0.5073, allocations: 327.1 kB / 0.6312 GB, free: 6.301 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5073, allocations: 4 kB / 0.6312 GB, free: 6.297 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002643/0.5099, allocations: 1.006 MB / 0.6322 GB, free: 5.289 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.006341/0.5163, allocations: 2.719 MB / 0.6349 GB, free: 2.547 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.5175, allocations: 0.5872 MB / 0.6355 GB, free: 1.957 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5175, allocations: 4 kB / 0.6355 GB, free: 1.953 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006836/0.5182, allocations: 0.5064 MB / 0.636 GB, free: 1.445 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.5193, allocations: 211.8 kB / 0.6362 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008034/0.5274, allocations: 4.982 MB / 0.641 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.528, allocations: 0.9638 MB / 0.642 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000528/0.5285, allocations: 274.8 kB / 0.6422 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.5288, allocations: 255.3 kB / 0.6425 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of SimCode: time 1.232e-06/0.5289, allocations: 4 kB / 0.6425 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08867/0.6175, allocations: 46.62 MB / 0.688 GB, free: 12.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.56, allocations: 18.3 kB / 0.688 GB, free: 12.09 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches