Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_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.001129/0.001129, allocations: 104 kB / 17.63 MB, free: 5.523 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.001154/0.001154, allocations: 192.1 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.201/0.201, allocations: 44.19 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 59.31 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09147, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03833/0.1298, allocations: 28.12 MB / 497.5 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.023/0.1529, allocations: 13.3 MB / 0.4988 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1533, allocations: 7.938 kB / 0.4988 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009182/0.1542, allocations: 254.4 kB / 0.4991 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01301/0.1673, allocations: 3.667 MB / 0.5026 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2195/0.3869, allocations: 2.351 MB / 0.5049 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001382/0.3883, allocations: 0.8897 MB / 0.5058 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006485/0.3889, allocations: 248 kB / 0.506 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.39, allocations: 445.4 kB / 0.5065 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006169/0.3907, allocations: 264.7 kB / 0.5067 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.3908, allocations: 33.22 kB / 0.5068 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01416/0.405, allocations: 7.056 MB / 0.5136 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.4052, allocations: 97.62 kB / 0.5137 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004069/0.4056, allocations: 223.2 kB / 0.5139 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0096/0.4153, allocations: 4.414 MB / 0.5183 GB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4153, allocations: 3.453 kB / 0.5183 GB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4153, allocations: 0 / 0.5183 GB, free: 13.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.4153, allocations: 0 / 0.5183 GB, free: 13.23 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.003605/0.4189, allocations: 1.226 MB / 0.5195 GB, free: 12.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.419, allocations: 9.562 kB / 0.5195 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.655e-05/0.4191, allocations: 67.59 kB / 0.5195 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00165/0.4207, allocations: 217.3 kB / 0.5197 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.4211, allocations: 364 kB / 0.5201 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.4212, allocations: 25.25 kB / 0.5201 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.4212, allocations: 27.88 kB / 0.5201 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.4226, allocations: 0.5823 MB / 0.5207 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.4226, allocations: 1.375 kB / 0.5207 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.4227, allocations: 21.02 kB / 0.5207 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.4227, allocations: 11.44 kB / 0.5207 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.4241, allocations: 0.5331 MB / 0.5213 GB, free: 12.08 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.002456/0.4266, allocations: 2.612 MB / 0.5238 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.428, allocations: 468.3 kB / 0.5243 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003809/0.4284, allocations: 186.7 kB / 0.5244 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04842/0.4769, allocations: 24.21 MB / 0.5481 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.477, allocations: 34.56 kB / 0.5481 GB, free: 5.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.697e-06/0.477, allocations: 0 / 0.5481 GB, free: 5.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003008/0.48, allocations: 0.7915 MB / 0.5489 GB, free: 4.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.4801, allocations: 102.8 kB / 0.549 GB, free: 4.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.4805, allocations: 318.5 kB / 0.5493 GB, free: 4.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.216e-05/0.4805, allocations: 29.39 kB / 0.5493 GB, free: 4.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.4807, allocations: 205.2 kB / 0.5495 GB, free: 4.215 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.967e-05/0.4808, allocations: 84.88 kB / 0.5496 GB, free: 4.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.4809, allocations: 72.34 kB / 0.5497 GB, free: 4.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4811, allocations: 337.9 kB / 0.55 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.4815, allocations: 143.1 kB / 0.5501 GB, free: 3.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.4819, allocations: 233 kB / 0.5503 GB, free: 3.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007789/0.4827, allocations: 365.2 kB / 0.5507 GB, free: 3.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4827, allocations: 2.625 kB / 0.5507 GB, free: 3.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001012/0.4837, allocations: 421.5 kB / 0.5511 GB, free: 2.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.4838, allocations: 4 kB / 0.5511 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.4838, allocations: 4 kB / 0.5511 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.4838, allocations: 7.938 kB / 0.5511 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.4841, allocations: 82.69 kB / 0.5512 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.4842, allocations: 4 kB / 0.5512 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000314/0.4845, allocations: 52.81 kB / 0.5512 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.4845, allocations: 15.44 kB / 0.5513 GB, free: 2.684 MB / 398.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.0001965/0.4847, allocations: 161.4 kB / 0.5514 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.842e-05/0.4848, allocations: 35.53 kB / 0.5514 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/0.4875, allocations: 1.905 MB / 0.5533 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.142e-05/0.4876, allocations: 35.88 kB / 0.5533 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4876, allocations: 0 / 0.5533 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.4876, allocations: 0 / 0.5533 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.4886, allocations: 1.016 MB / 0.5543 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.4887, allocations: 0 / 0.5543 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.489, allocations: 71.31 kB / 0.5544 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.489, allocations: 5.781 kB / 0.5544 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.489, allocations: 11.98 kB / 0.5544 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.489, allocations: 5.812 kB / 0.5544 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.489, allocations: 0 / 0.5544 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.4905, allocations: 1.077 MB / 0.5555 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.4906, allocations: 163.9 kB / 0.5556 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.584e-05/0.4907, allocations: 25.11 kB / 0.5557 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.491, allocations: 31.91 kB / 0.5557 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.4911, allocations: 27.95 kB / 0.5557 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.4911, allocations: 12 kB / 0.5557 GB, free: 14.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003461/0.4915, allocations: 331 kB / 0.556 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4915, allocations: 0 / 0.556 GB, free: 13.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003971/0.4955, allocations: 0.9954 MB / 0.557 GB, free: 12.91 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.01104/0.5065, allocations: 2.698 MB / 0.5596 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.5087, allocations: 0.6091 MB / 0.5602 GB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5088, allocations: 0 / 0.5602 GB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009858/0.5098, allocations: 0.5094 MB / 0.5607 GB, free: 9.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.5116, allocations: 222.3 kB / 0.561 GB, free: 8.988 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.5228, allocations: 5.008 MB / 0.5658 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004856/0.5233, allocations: 0.9597 MB / 0.5668 GB, free: 2.891 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00048/0.5238, allocations: 278.2 kB / 0.567 GB, free: 2.625 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.5241, allocations: 259.3 kB / 0.5673 GB, free: 2.371 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5241, allocations: 0 / 0.5673 GB, free: 2.371 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09015/0.6143, allocations: 46.52 MB / 0.6127 GB, free: 4.078 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.65, allocations: 8.531 kB / 0.6127 GB, free: 4.074 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches