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.001124/0.001125, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2106/0.2106, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001466, allocations: 79.16 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1044, allocations: 62.45 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02889/0.1333, allocations: 28.25 MB / 0.4965 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2228/0.3562, allocations: 13.29 MB / 0.5095 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000428/0.3567, allocations: 9.469 kB / 0.5095 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000848/0.3576, allocations: 251.3 kB / 0.5097 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.3678, allocations: 3.665 MB / 0.5133 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006177/0.374, allocations: 2.365 MB / 0.5156 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.3751, allocations: 0.8905 MB / 0.5165 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003728/0.3755, allocations: 251.5 kB / 0.5167 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006787/0.3762, allocations: 444.3 kB / 0.5171 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000277/0.3765, allocations: 267.5 kB / 0.5174 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.747e-05/0.3766, allocations: 32.94 kB / 0.5174 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01642/0.393, allocations: 7.068 MB / 0.5243 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.3932, allocations: 106.5 kB / 0.5244 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003998/0.3936, allocations: 219.9 kB / 0.5246 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.4037, allocations: 4.419 MB / 0.5289 GB, free: 8.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4037, allocations: 0 / 0.5289 GB, free: 8.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4037, allocations: 0 / 0.5289 GB, free: 8.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.4037, allocations: 1.469 kB / 0.5289 GB, free: 8.148 MB / 382.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.003381/0.4071, allocations: 1.225 MB / 0.5301 GB, free: 7.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.4072, allocations: 9.625 kB / 0.5301 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.38e-05/0.4072, allocations: 73.66 kB / 0.5302 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.4089, allocations: 212.2 kB / 0.5304 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.4093, allocations: 361.8 kB / 0.5308 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.4094, allocations: 26.56 kB / 0.5308 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.4094, allocations: 30.88 kB / 0.5308 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.4108, allocations: 0.5829 MB / 0.5314 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4108, allocations: 0 / 0.5314 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.4109, allocations: 16.91 kB / 0.5314 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4109, allocations: 7.406 kB / 0.5314 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.4124, allocations: 0.5246 MB / 0.5319 GB, free: 6.102 MB / 382.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.002436/0.4148, allocations: 2.637 MB / 0.5345 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.4163, allocations: 461.1 kB / 0.5349 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003872/0.4167, allocations: 193.7 kB / 0.5351 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05423/0.4709, allocations: 26.77 MB / 0.5613 GB, free: 8.523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.471, allocations: 30.56 kB / 0.5613 GB, free: 8.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.471, allocations: 0 / 0.5613 GB, free: 8.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002929/0.474, allocations: 0.794 MB / 0.5621 GB, free: 7.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.867e-05/0.4741, allocations: 110.8 kB / 0.5622 GB, free: 7.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.4744, allocations: 308.5 kB / 0.5625 GB, free: 7.246 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.4745, allocations: 33.7 kB / 0.5625 GB, free: 7.207 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.4746, allocations: 200.2 kB / 0.5627 GB, free: 7.008 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.051e-05/0.4747, allocations: 89.25 kB / 0.5628 GB, free: 6.922 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.4748, allocations: 69.69 kB / 0.5628 GB, free: 6.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4749, allocations: 342.8 kB / 0.5632 GB, free: 6.504 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.4753, allocations: 149.6 kB / 0.5633 GB, free: 6.359 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.4758, allocations: 232.4 kB / 0.5635 GB, free: 6.094 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000784/0.4766, allocations: 357 kB / 0.5639 GB, free: 5.715 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4766, allocations: 0 / 0.5639 GB, free: 5.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009841/0.4776, allocations: 421.6 kB / 0.5643 GB, free: 5.297 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.4776, allocations: 8 kB / 0.5643 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.4776, allocations: 0 / 0.5643 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.4776, allocations: 7.938 kB / 0.5643 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003422/0.478, allocations: 87.88 kB / 0.5644 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.478, allocations: 8.25 kB / 0.5644 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.4783, allocations: 51.56 kB / 0.5644 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.4784, allocations: 16.88 kB / 0.5645 GB, free: 5.121 MB / 414.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.0001877/0.4786, allocations: 157.8 kB / 0.5646 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.064e-05/0.4786, allocations: 31.62 kB / 0.5646 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.481, allocations: 1.902 MB / 0.5665 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/0.4811, allocations: 36.95 kB / 0.5665 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.4811, allocations: 0 / 0.5665 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.4811, allocations: 0 / 0.5665 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009839/0.4821, allocations: 1.021 MB / 0.5675 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4821, allocations: 0.5 kB / 0.5675 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.4824, allocations: 71.88 kB / 0.5676 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4824, allocations: 0 / 0.5676 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.4825, allocations: 11.98 kB / 0.5676 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.4825, allocations: 7.938 kB / 0.5676 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4825, allocations: 0 / 0.5676 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.4839, allocations: 1.084 MB / 0.5687 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.4841, allocations: 159.9 kB / 0.5688 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.051e-05/0.4842, allocations: 27.75 kB / 0.5688 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.4844, allocations: 31.91 kB / 0.5689 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.14e-05/0.4845, allocations: 35.94 kB / 0.5689 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.4846, allocations: 12 kB / 0.5689 GB, free: 468 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003345/0.4849, allocations: 323.1 kB / 0.5692 GB, free: 148 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4849, allocations: 0 / 0.5692 GB, free: 148 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003259/0.4882, allocations: 0.9955 MB / 0.5702 GB, free: 15.15 MB / 430.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.00697/0.4952, allocations: 2.704 MB / 0.5728 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.4967, allocations: 0.6104 MB / 0.5734 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4967, allocations: 0 / 0.5734 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006788/0.4974, allocations: 0.5187 MB / 0.5739 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.4987, allocations: 220.4 kB / 0.5742 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008764/0.5075, allocations: 5.011 MB / 0.5791 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.508, allocations: 0.9638 MB / 0.58 GB, free: 5.043 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004846/0.5085, allocations: 274.2 kB / 0.5803 GB, free: 4.781 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003071/0.5089, allocations: 255.3 kB / 0.5805 GB, free: 4.531 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5089, allocations: 0 / 0.5805 GB, free: 4.531 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08489/0.5938, allocations: 46.6 MB / 0.626 GB, free: 6.055 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.942/10.54, allocations: 2.5 kB / 0.626 GB, free: 6.055 MB / 478.1 MB (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