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) 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 109.1 kB / 16.41 MB, free: 6.445 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.001092/0.001092, allocations: 185 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1974/0.1974, allocations: 43.53 MB / 314.1 MB, free: 472 kB / 254.1 MB 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.00241/0.00241, allocations: 63.91 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1078, allocations: 57.78 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02861/0.1365, allocations: 28.14 MB / 0.5149 GB, free: 92 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.1511, allocations: 13.3 MB / 0.5279 GB, free: 2.742 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000308/0.1515, allocations: 11.94 kB / 0.5279 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006924/0.1522, allocations: 246.4 kB / 0.5281 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2127/0.3649, allocations: 3.647 MB / 0.5317 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005745/0.3707, allocations: 2.364 MB / 0.534 GB, free: 4.551 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.3718, allocations: 0.8926 MB / 0.5348 GB, free: 4.551 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.3722, allocations: 243.2 kB / 0.5351 GB, free: 4.543 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006937/0.3729, allocations: 450.5 kB / 0.5355 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.3732, allocations: 270.2 kB / 0.5358 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.335e-05/0.3733, allocations: 33 kB / 0.5358 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01347/0.3868, allocations: 7.223 MB / 0.5428 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.387, allocations: 102.2 kB / 0.5429 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003739/0.3873, allocations: 221 kB / 0.5432 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.3979, allocations: 4.414 MB / 0.5475 GB, free: 4.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.398, allocations: 0 / 0.5475 GB, free: 4.336 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.398, allocations: 0 / 0.5475 GB, free: 4.336 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.398, allocations: 1.125 kB / 0.5475 GB, free: 4.336 MB / 414.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.003671/0.4017, allocations: 1.265 MB / 0.5487 GB, free: 3.574 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4017, allocations: 13.08 kB / 0.5487 GB, free: 3.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.84e-05/0.4018, allocations: 65.94 kB / 0.5488 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.4035, allocations: 213.8 kB / 0.549 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005428/0.404, allocations: 378 kB / 0.5493 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.4041, allocations: 26.72 kB / 0.5494 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.4041, allocations: 29.97 kB / 0.5494 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4056, allocations: 0.582 MB / 0.55 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4056, allocations: 5.031 kB / 0.55 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/0.4056, allocations: 15.47 kB / 0.55 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.4057, allocations: 14.75 kB / 0.55 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.4071, allocations: 0.522 MB / 0.5505 GB, free: 3.129 MB / 414.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.002452/0.4096, allocations: 2.624 MB / 0.5531 GB, free: 1.215 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.4111, allocations: 455.6 kB / 0.5535 GB, free: 1.188 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000413/0.4115, allocations: 193.8 kB / 0.5537 GB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04806/0.4596, allocations: 24.31 MB / 0.5774 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.4597, allocations: 37.41 kB / 0.5775 GB, free: 14.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.355e-06/0.4597, allocations: 0 / 0.5775 GB, free: 14.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002816/0.4625, allocations: 0.7924 MB / 0.5782 GB, free: 13.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.4626, allocations: 102.8 kB / 0.5783 GB, free: 13.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003737/0.463, allocations: 309.9 kB / 0.5786 GB, free: 13.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.463, allocations: 33.39 kB / 0.5787 GB, free: 13.53 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.4632, allocations: 206.2 kB / 0.5789 GB, free: 13.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.723e-05/0.4633, allocations: 94.53 kB / 0.5789 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.4634, allocations: 63.25 kB / 0.579 GB, free: 13.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4635, allocations: 339.9 kB / 0.5793 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.4639, allocations: 139.8 kB / 0.5795 GB, free: 12.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004545/0.4644, allocations: 236.4 kB / 0.5797 GB, free: 12.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000771/0.4652, allocations: 362 kB / 0.58 GB, free: 12.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4652, allocations: 0 / 0.58 GB, free: 12.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009177/0.4661, allocations: 430.8 kB / 0.5804 GB, free: 11.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.4661, allocations: 4 kB / 0.5805 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4662, allocations: 4 kB / 0.5805 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.4662, allocations: 10.25 kB / 0.5805 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.4665, allocations: 82.88 kB / 0.5805 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.4665, allocations: 5.172 kB / 0.5805 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.4668, allocations: 53.83 kB / 0.5806 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.4669, allocations: 15.44 kB / 0.5806 GB, free: 11.84 MB / 446.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.000171/0.467, allocations: 164.2 kB / 0.5808 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.41e-05/0.4671, allocations: 31.81 kB / 0.5808 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00232/0.4694, allocations: 1.899 MB / 0.5827 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.041e-05/0.4695, allocations: 31.89 kB / 0.5827 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4695, allocations: 0 / 0.5827 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.4695, allocations: 3.984 kB / 0.5827 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009638/0.4705, allocations: 1.022 MB / 0.5837 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.4705, allocations: 4 kB / 0.5837 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.4708, allocations: 67.59 kB / 0.5838 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.4708, allocations: 7.938 kB / 0.5838 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.4708, allocations: 8 kB / 0.5838 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.4708, allocations: 7.938 kB / 0.5838 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4708, allocations: 0 / 0.5838 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.4723, allocations: 1.079 MB / 0.5848 GB, free: 7.918 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.4725, allocations: 172.2 kB / 0.585 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.897e-05/0.4725, allocations: 27.83 kB / 0.585 GB, free: 7.703 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.4728, allocations: 28.8 kB / 0.5851 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.254e-05/0.4729, allocations: 27.95 kB / 0.5851 GB, free: 7.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.4729, allocations: 19.92 kB / 0.5851 GB, free: 7.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003377/0.4733, allocations: 327.1 kB / 0.5854 GB, free: 7.312 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4733, allocations: 0 / 0.5854 GB, free: 7.312 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00378/0.477, allocations: 0.9981 MB / 0.5864 GB, free: 6.312 MB / 446.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.006874/0.4839, allocations: 2.712 MB / 0.589 GB, free: 3.695 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.4852, allocations: 0.5843 MB / 0.5896 GB, free: 3.121 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4853, allocations: 4 kB / 0.5896 GB, free: 3.117 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007102/0.486, allocations: 0.5102 MB / 0.5901 GB, free: 2.617 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.4872, allocations: 222.8 kB / 0.5903 GB, free: 2.402 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007767/0.4949, allocations: 4.987 MB / 0.5952 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.4955, allocations: 0.9669 MB / 0.5961 GB, free: 12.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004709/0.496, allocations: 282.5 kB / 0.5964 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.4963, allocations: 259.3 kB / 0.5966 GB, free: 11.79 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4963, allocations: 0 / 0.5966 GB, free: 11.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07742/0.5737, allocations: 46.52 MB / 0.6421 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.3, allocations: 12.06 kB / 0.6421 GB, free: 13.25 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches