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.001165/0.001165, allocations: 97.55 kB / 17 MB, free: 6.398 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.001465/0.001465, allocations: 176.7 kB / 17.89 MB, free: 5.945 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.311/1.311, allocations: 223.2 MB / 241.9 MB, free: 264 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2158/0.2158, allocations: 44.23 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 12.22 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1254, allocations: 61.91 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02678/0.1522, allocations: 26.14 MB / 497.8 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.1661, allocations: 12.41 MB / 0.4982 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003119/0.1664, allocations: 7.938 kB / 0.4982 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005669/0.167, allocations: 202.8 kB / 0.4984 GB, free: 6.762 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006898/0.1739, allocations: 2.852 MB / 0.5012 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004786/0.1787, allocations: 1.832 MB / 0.503 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.1798, allocations: 0.9899 MB / 0.504 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003039/0.1801, allocations: 193 kB / 0.5042 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000593/0.1807, allocations: 386.3 kB / 0.5045 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.181, allocations: 262.9 kB / 0.5048 GB, free: 272 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.1811, allocations: 16 kB / 0.5048 GB, free: 256 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2408/0.4219, allocations: 6.809 MB / 0.5115 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002397/0.4222, allocations: 77.14 kB / 0.5115 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.4224, allocations: 104.2 kB / 0.5116 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007535/0.43, allocations: 2.961 MB / 0.5145 GB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.43, allocations: 0.5 kB / 0.5145 GB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.43, allocations: 4 kB / 0.5145 GB, free: 15.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.43, allocations: 0.5 kB / 0.5145 GB, free: 15.29 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.004699/0.4347, allocations: 1.156 MB / 0.5156 GB, free: 14.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.4348, allocations: 10.62 kB / 0.5157 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.4349, allocations: 72.97 kB / 0.5157 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.4366, allocations: 215.2 kB / 0.5159 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000534/0.4372, allocations: 362.3 kB / 0.5163 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.967e-05/0.4372, allocations: 23.44 kB / 0.5163 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.4373, allocations: 27.03 kB / 0.5163 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.4388, allocations: 0.5991 MB / 0.5169 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4388, allocations: 2.719 kB / 0.5169 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.4389, allocations: 17.58 kB / 0.5169 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.4389, allocations: 7.281 kB / 0.5169 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.4404, allocations: 0.5622 MB / 0.5175 GB, free: 14.16 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.002742/0.4432, allocations: 2.643 MB / 0.5201 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.4447, allocations: 493.7 kB / 0.5205 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/0.4451, allocations: 203.2 kB / 0.5207 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04171/0.4868, allocations: 24.42 MB / 0.5446 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.4869, allocations: 38.44 kB / 0.5446 GB, free: 10.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.4869, allocations: 0 / 0.5446 GB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002614/0.4895, allocations: 0.8535 MB / 0.5455 GB, free: 9.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.45e-05/0.4896, allocations: 104.9 kB / 0.5456 GB, free: 9.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.49, allocations: 303.1 kB / 0.5458 GB, free: 9.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.49, allocations: 32.83 kB / 0.5459 GB, free: 9.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.4901, allocations: 211.5 kB / 0.5461 GB, free: 9.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.878e-05/0.4902, allocations: 81.52 kB / 0.5462 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.4903, allocations: 3.25 kB / 0.5462 GB, free: 9.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4904, allocations: 349.9 kB / 0.5465 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.4908, allocations: 154.4 kB / 0.5466 GB, free: 8.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000431/0.4912, allocations: 242.6 kB / 0.5469 GB, free: 8.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003751/0.4916, allocations: 167.8 kB / 0.547 GB, free: 8.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.4916, allocations: 7.078 kB / 0.547 GB, free: 8.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009413/0.4926, allocations: 451.8 kB / 0.5475 GB, free: 8.203 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.4926, allocations: 8 kB / 0.5475 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4926, allocations: 0 / 0.5475 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.4927, allocations: 8 kB / 0.5475 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.493, allocations: 91.41 kB / 0.5476 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.493, allocations: 8 kB / 0.5476 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.4934, allocations: 57.72 kB / 0.5476 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.4934, allocations: 23.86 kB / 0.5477 GB, free: 8.031 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 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001904/0.4936, allocations: 159.7 kB / 0.5478 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-05/0.4937, allocations: 35.53 kB / 0.5478 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.496, allocations: 1.94 MB / 0.5497 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-05/0.496, allocations: 29.83 kB / 0.5498 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.496, allocations: 0 / 0.5498 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.496, allocations: 0 / 0.5498 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.4971, allocations: 1.019 MB / 0.5508 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.4971, allocations: 4.875 kB / 0.5508 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.4974, allocations: 86.08 kB / 0.5508 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.4974, allocations: 0 / 0.5508 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.4975, allocations: 7 kB / 0.5509 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.4975, allocations: 2.188 kB / 0.5509 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.4975, allocations: 5.188 kB / 0.5509 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.4989, allocations: 1.107 MB / 0.5519 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.4991, allocations: 212.1 kB / 0.5521 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.337e-05/0.4992, allocations: 15.42 kB / 0.5522 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.4995, allocations: 39.12 kB / 0.5522 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.4996, allocations: 33.45 kB / 0.5522 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.4997, allocations: 19.23 kB / 0.5522 GB, free: 4.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004012/0.5001, allocations: 317.9 kB / 0.5526 GB, free: 4.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5001, allocations: 0 / 0.5526 GB, free: 4.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005504/0.5056, allocations: 0.9959 MB / 0.5535 GB, free: 3.406 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00892/0.5145, allocations: 2.719 MB / 0.5562 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.5159, allocations: 0.6134 MB / 0.5568 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.5159, allocations: 4 kB / 0.5568 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006719/0.5166, allocations: 0.5289 MB / 0.5573 GB, free: 388 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.5178, allocations: 203 kB / 0.5575 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007922/0.5257, allocations: 3.663 MB / 0.5611 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.5263, allocations: 0.9595 MB / 0.562 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005461/0.5269, allocations: 287.7 kB / 0.5623 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.5272, allocations: 254.2 kB / 0.5625 GB, free: 11.72 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5272, allocations: 0 / 0.5625 GB, free: 11.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07918/0.6064, allocations: 46.19 MB / 0.6076 GB, free: 13.91 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002143/0.6066, allocations: 241.1 kB / 0.6079 GB, free: 13.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.216/4.822, allocations: 0 / 0.6079 GB, free: 13.65 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat