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.001198/0.001198, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 206 kB / 18.74 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.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2105/0.2105, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 79.81 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.316, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02953/0.3456, allocations: 28.27 MB / 0.5581 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.015/0.3606, allocations: 13.3 MB / 0.5711 GB, free: 8.102 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003495/0.361, allocations: 11.94 kB / 0.5711 GB, free: 8.09 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007027/0.3618, allocations: 242.4 kB / 0.5713 GB, free: 7.852 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009402/0.3712, allocations: 3.687 MB / 0.5749 GB, free: 4.168 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006062/0.3773, allocations: 2.365 MB / 0.5772 GB, free: 1.805 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.3785, allocations: 0.8963 MB / 0.5781 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.3789, allocations: 248.7 kB / 0.5784 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007814/0.3797, allocations: 446.2 kB / 0.5788 GB, free: 228 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.3801, allocations: 266.9 kB / 0.579 GB, free: 15.96 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.987e-05/0.3801, allocations: 35.94 kB / 0.5791 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01448/0.3946, allocations: 7.239 MB / 0.5861 GB, free: 8.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.3949, allocations: 103.7 kB / 0.5862 GB, free: 8.578 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000375/0.3952, allocations: 222.9 kB / 0.5865 GB, free: 8.359 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.4064, allocations: 4.423 MB / 0.5908 GB, free: 3.926 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4065, allocations: 0 / 0.5908 GB, free: 3.926 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4065, allocations: 0 / 0.5908 GB, free: 3.926 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.4065, allocations: 4 kB / 0.5908 GB, free: 3.922 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.003166/0.4097, allocations: 1.267 MB / 0.592 GB, free: 2.602 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.4097, allocations: 8.031 kB / 0.592 GB, free: 2.594 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.046e-05/0.4098, allocations: 70.7 kB / 0.5921 GB, free: 2.516 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.4115, allocations: 220.4 kB / 0.5923 GB, free: 2.301 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006123/0.4121, allocations: 375.5 kB / 0.5927 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.4122, allocations: 29.03 kB / 0.5927 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.4122, allocations: 28.12 kB / 0.5927 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.4138, allocations: 0.5784 MB / 0.5933 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.4138, allocations: 11.92 kB / 0.5933 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.4139, allocations: 12 kB / 0.5933 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.4139, allocations: 8 kB / 0.5933 GB, free: 1.191 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.4155, allocations: 0.5211 MB / 0.5938 GB, free: 0.668 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.003308/0.4188, allocations: 2.625 MB / 0.5964 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.4203, allocations: 462 kB / 0.5968 GB, free: 13.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.4207, allocations: 188.7 kB / 0.597 GB, free: 13.15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04749/0.4682, allocations: 26.89 MB / 0.6233 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.4683, allocations: 38.5 kB / 0.6233 GB, free: 14.81 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.4683, allocations: 4 kB / 0.6233 GB, free: 14.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002762/0.4711, allocations: 0.7858 MB / 0.6241 GB, free: 14.01 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.4712, allocations: 106.8 kB / 0.6242 GB, free: 13.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.4715, allocations: 312.5 kB / 0.6245 GB, free: 13.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.4716, allocations: 33.7 kB / 0.6245 GB, free: 13.53 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.4717, allocations: 208.5 kB / 0.6247 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.335e-05/0.4718, allocations: 87.27 kB / 0.6248 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.4719, allocations: 69.69 kB / 0.6248 GB, free: 13.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.4721, allocations: 346.8 kB / 0.6252 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/0.4724, allocations: 139.9 kB / 0.6253 GB, free: 12.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.4729, allocations: 235.7 kB / 0.6255 GB, free: 12.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.4736, allocations: 362 kB / 0.6259 GB, free: 12.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4737, allocations: 4 kB / 0.6259 GB, free: 12.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009692/0.4746, allocations: 424.9 kB / 0.6263 GB, free: 11.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.4747, allocations: 10.19 kB / 0.6263 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.4747, allocations: 4 kB / 0.6263 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.4747, allocations: 7.938 kB / 0.6263 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003144/0.475, allocations: 84.19 kB / 0.6264 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.4751, allocations: 4 kB / 0.6264 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.4753, allocations: 47.75 kB / 0.6264 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.4754, allocations: 12 kB / 0.6264 GB, free: 11.43 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.0001789/0.4756, allocations: 161.7 kB / 0.6266 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.4756, allocations: 39.77 kB / 0.6266 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.478, allocations: 1.904 MB / 0.6285 GB, free: 9.309 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/0.478, allocations: 31.94 kB / 0.6285 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4781, allocations: 0 / 0.6285 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4781, allocations: 4 kB / 0.6285 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009704/0.479, allocations: 1.012 MB / 0.6295 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4791, allocations: 0 / 0.6295 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.4794, allocations: 75.81 kB / 0.6296 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.4794, allocations: 4 kB / 0.6296 GB, free: 8.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.4794, allocations: 15.92 kB / 0.6296 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.4794, allocations: 0 / 0.6296 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4794, allocations: 4 kB / 0.6296 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.4808, allocations: 1.089 MB / 0.6307 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.481, allocations: 168.2 kB / 0.6308 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.126e-05/0.4811, allocations: 23.78 kB / 0.6309 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.4814, allocations: 23.97 kB / 0.6309 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.611e-05/0.4815, allocations: 35.95 kB / 0.6309 GB, free: 6.742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/0.4815, allocations: 8 kB / 0.6309 GB, free: 6.734 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003392/0.4818, allocations: 323.1 kB / 0.6312 GB, free: 6.418 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4819, allocations: 4 kB / 0.6312 GB, free: 6.414 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002522/0.4844, allocations: 1.01 MB / 0.6322 GB, free: 5.402 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.006231/0.4906, allocations: 2.715 MB / 0.6349 GB, free: 2.664 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.4918, allocations: 0.5872 MB / 0.6355 GB, free: 2.074 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4919, allocations: 4 kB / 0.6355 GB, free: 2.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006749/0.4925, allocations: 0.5063 MB / 0.636 GB, free: 1.562 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.4937, allocations: 218.7 kB / 0.6362 GB, free: 1.359 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008052/0.5018, allocations: 4.974 MB / 0.641 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.5023, allocations: 0.9677 MB / 0.642 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004513/0.5028, allocations: 278.8 kB / 0.6422 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.5031, allocations: 255.3 kB / 0.6425 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.5031, allocations: 0 / 0.6425 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0794/0.5825, allocations: 46.63 MB / 0.688 GB, free: 12.22 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.31, allocations: 14.34 kB / 0.688 GB, free: 12.21 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