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.001367/0.001367, allocations: 101.1 kB / 16.27 MB, free: 5.93 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.001346/0.001346, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.421/1.421, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2004/0.2004, allocations: 43.52 MB / 313.9 MB, free: 0.5195 MB / 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.001472/0.001472, allocations: 71.84 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09284/0.09433, allocations: 57.8 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02674/0.1211, allocations: 28.11 MB / 468.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01483/0.136, allocations: 13.29 MB / 482 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003932/0.1364, allocations: 11.94 kB / 482 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007575/0.1372, allocations: 258.3 kB / 482.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009845/0.1471, allocations: 3.649 MB / 485.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005852/0.153, allocations: 2.368 MB / 488.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009674/0.1539, allocations: 0.8847 MB / 489.2 MB, free: 6.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003624/0.1543, allocations: 248.8 kB / 489.4 MB, free: 5.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006442/0.155, allocations: 430.3 kB / 489.9 MB, free: 5.398 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.1553, allocations: 274.8 kB / 490.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.1553, allocations: 32 kB / 490.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0123/0.1676, allocations: 7.059 MB / 497.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.1679, allocations: 99.66 kB / 497.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002896/0.1682, allocations: 219 kB / 497.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009906/0.1781, allocations: 4.413 MB / 0.4902 GB, free: 9.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.1781, allocations: 0 / 0.4902 GB, free: 9.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1782, allocations: 0 / 0.4902 GB, free: 9.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.1782, allocations: 0 / 0.4902 GB, free: 9.297 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.003191/0.1814, allocations: 1.228 MB / 0.4914 GB, free: 8.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.1814, allocations: 11.89 kB / 0.4914 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.606e-05/0.1815, allocations: 66.72 kB / 0.4915 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/0.1832, allocations: 216.2 kB / 0.4917 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000447/0.1836, allocations: 359.3 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.702e-05/0.1837, allocations: 25.03 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.1837, allocations: 36.06 kB / 0.4921 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.1852, allocations: 0.5784 MB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.1852, allocations: 0 / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.1853, allocations: 12 kB / 0.4926 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1853, allocations: 11.94 kB / 0.4926 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.1869, allocations: 0.525 MB / 0.4932 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.00304/0.1899, allocations: 2.633 MB / 0.4957 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.1915, allocations: 462.1 kB / 0.4962 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004184/0.1919, allocations: 185.6 kB / 0.4964 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0495/0.2414, allocations: 24.21 MB / 0.52 GB, free: 7.488 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.2415, allocations: 42.56 kB / 0.52 GB, free: 7.438 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.554e-06/0.2415, allocations: 0 / 0.52 GB, free: 7.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003053/0.2446, allocations: 0.7856 MB / 0.5208 GB, free: 6.645 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.2447, allocations: 110.8 kB / 0.5209 GB, free: 6.512 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.2451, allocations: 316.5 kB / 0.5212 GB, free: 6.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.2452, allocations: 33.64 kB / 0.5212 GB, free: 6.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.2454, allocations: 204.2 kB / 0.5214 GB, free: 5.953 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.2455, allocations: 90.73 kB / 0.5215 GB, free: 5.863 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.2456, allocations: 65.69 kB / 0.5216 GB, free: 5.793 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2458, allocations: 342.8 kB / 0.5219 GB, free: 5.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.2462, allocations: 135.9 kB / 0.522 GB, free: 5.316 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004668/0.2466, allocations: 231 kB / 0.5223 GB, free: 5.051 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000797/0.2475, allocations: 361.1 kB / 0.5226 GB, free: 4.664 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2475, allocations: 0 / 0.5226 GB, free: 4.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00102/0.2485, allocations: 418 kB / 0.523 GB, free: 4.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.2485, allocations: 8.062 kB / 0.523 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.2485, allocations: 4 kB / 0.523 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.2486, allocations: 7.938 kB / 0.523 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.2489, allocations: 79.88 kB / 0.5231 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.2489, allocations: 7.938 kB / 0.5231 GB, free: 4.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.2492, allocations: 51.66 kB / 0.5232 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.2493, allocations: 16 kB / 0.5232 GB, free: 4.078 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.000196/0.2495, allocations: 165.9 kB / 0.5233 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.763e-05/0.2496, allocations: 35.53 kB / 0.5234 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002401/0.252, allocations: 1.905 MB / 0.5252 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.867e-05/0.252, allocations: 31.94 kB / 0.5253 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.252, allocations: 0 / 0.5253 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.2521, allocations: 0 / 0.5253 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/0.253, allocations: 1.012 MB / 0.5262 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.253, allocations: 0 / 0.5262 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002978/0.2533, allocations: 71.94 kB / 0.5263 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.503e-06/0.2533, allocations: 4 kB / 0.5263 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.2534, allocations: 11.92 kB / 0.5263 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2534, allocations: 4 kB / 0.5263 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2534, allocations: 3.984 kB / 0.5263 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1671/0.4205, allocations: 1.083 MB / 0.5274 GB, free: 93.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.4206, allocations: 156.6 kB / 0.5275 GB, free: 93.74 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.528e-05/0.4208, allocations: 30.7 kB / 0.5276 GB, free: 93.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.4211, allocations: 23.84 kB / 0.5276 GB, free: 93.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.4212, allocations: 32.91 kB / 0.5276 GB, free: 93.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.4212, allocations: 17.77 kB / 0.5276 GB, free: 93.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003294/0.4216, allocations: 325.2 kB / 0.528 GB, free: 93.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4216, allocations: 0 / 0.528 GB, free: 93.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002589/0.4242, allocations: 0.9901 MB / 0.5289 GB, free: 93.62 MB / 414.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.005369/0.4295, allocations: 2.704 MB / 0.5316 GB, free: 92.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.431, allocations: 0.6083 MB / 0.5322 GB, free: 92.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.431, allocations: 0.875 kB / 0.5322 GB, free: 92.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006235/0.4317, allocations: 0.514 MB / 0.5327 GB, free: 92.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.4328, allocations: 206.1 kB / 0.5329 GB, free: 92.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006828/0.4396, allocations: 5.011 MB / 0.5377 GB, free: 90.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.4401, allocations: 0.9659 MB / 0.5387 GB, free: 90.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005422/0.4406, allocations: 276 kB / 0.539 GB, free: 90.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000256/0.4409, allocations: 256.6 kB / 0.5392 GB, free: 89.93 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4409, allocations: 0 / 0.5392 GB, free: 89.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06451/0.5054, allocations: 46.5 MB / 0.5846 GB, free: 49.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.962/10.47, allocations: 11.56 kB / 0.5846 GB, free: 49.77 MB / 414.1 MB (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