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.0008926/0.0008928, allocations: 98.92 kB / 17 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009573/0.0009573, allocations: 191 kB / 17.9 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1998/0.1998, allocations: 45.92 MB / 344.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002541, allocations: 8 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 63.46 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02875/0.1334, allocations: 26.22 MB / 0.496 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2338/0.3672, allocations: 12.39 MB / 0.5081 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004113/0.3677, allocations: 11.12 kB / 0.5081 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006741/0.3684, allocations: 202.9 kB / 0.5083 GB, free: 11.63 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.007808/0.3762, allocations: 2.848 MB / 0.511 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005287/0.3815, allocations: 1.835 MB / 0.5128 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.3828, allocations: 0.9895 MB / 0.5138 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003596/0.3832, allocations: 200.8 kB / 0.514 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006886/0.3839, allocations: 389.2 kB / 0.5144 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003653/0.3843, allocations: 256.6 kB / 0.5146 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/0.3843, allocations: 17.97 kB / 0.5146 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01476/0.3991, allocations: 6.825 MB / 0.5213 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.3994, allocations: 84.05 kB / 0.5214 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002553/0.3996, allocations: 103.5 kB / 0.5215 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006359/0.406, allocations: 2.963 MB / 0.5244 GB, free: 10.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.406, allocations: 0 / 0.5244 GB, free: 10.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4061, allocations: 0 / 0.5244 GB, free: 10.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.4061, allocations: 0 / 0.5244 GB, free: 10.64 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.004203/0.4103, allocations: 1.166 MB / 0.5255 GB, free: 9.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4103, allocations: 9.281 kB / 0.5255 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.582e-05/0.4104, allocations: 68.06 kB / 0.5256 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/0.4121, allocations: 222.7 kB / 0.5258 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.4126, allocations: 344 kB / 0.5261 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.4126, allocations: 27.06 kB / 0.5261 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.4126, allocations: 28.69 kB / 0.5262 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.4141, allocations: 0.6045 MB / 0.5268 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.4141, allocations: 1.188 kB / 0.5268 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.4141, allocations: 14.12 kB / 0.5268 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.4141, allocations: 7.562 kB / 0.5268 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.4156, allocations: 0.5665 MB / 0.5273 GB, free: 9.066 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.002385/0.418, allocations: 2.635 MB / 0.5299 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.4194, allocations: 493.9 kB / 0.5304 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.4198, allocations: 203.2 kB / 0.5306 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0449/0.4647, allocations: 26.99 MB / 0.5569 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/0.4648, allocations: 46.14 kB / 0.557 GB, free: 13.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.894e-06/0.4648, allocations: 0 / 0.557 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002791/0.4676, allocations: 0.8542 MB / 0.5578 GB, free: 13.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.4677, allocations: 110.7 kB / 0.5579 GB, free: 13.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.4681, allocations: 304.8 kB / 0.5582 GB, free: 12.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.4681, allocations: 36.64 kB / 0.5582 GB, free: 12.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.4683, allocations: 204 kB / 0.5584 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.731e-05/0.4684, allocations: 84.5 kB / 0.5585 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/0.4684, allocations: 7.688 kB / 0.5585 GB, free: 12.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4685, allocations: 337.4 kB / 0.5588 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.4689, allocations: 153.1 kB / 0.559 GB, free: 12.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004175/0.4693, allocations: 256.6 kB / 0.5592 GB, free: 11.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.4697, allocations: 168.5 kB / 0.5594 GB, free: 11.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4697, allocations: 0 / 0.5594 GB, free: 11.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009218/0.4706, allocations: 449.1 kB / 0.5598 GB, free: 11.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4707, allocations: 10.3 kB / 0.5598 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4707, allocations: 4 kB / 0.5598 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.4707, allocations: 4 kB / 0.5598 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.471, allocations: 91.12 kB / 0.5599 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.4711, allocations: 7.938 kB / 0.5599 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.4714, allocations: 61.59 kB / 0.56 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.4715, allocations: 19.23 kB / 0.56 GB, free: 11.29 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 (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.0001827/0.4717, allocations: 158.3 kB / 0.5602 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/0.4717, allocations: 39.53 kB / 0.5602 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002289/0.474, allocations: 1.934 MB / 0.5621 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-05/0.4741, allocations: 31.16 kB / 0.5621 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4741, allocations: 0 / 0.5621 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4741, allocations: 11.97 kB / 0.5621 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.4752, allocations: 1.014 MB / 0.5631 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4752, allocations: 4 kB / 0.5631 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.4755, allocations: 79.44 kB / 0.5632 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.106e-06/0.4755, allocations: 4 kB / 0.5632 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.4756, allocations: 6.938 kB / 0.5632 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.4756, allocations: 7.953 kB / 0.5632 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4756, allocations: 3.938 kB / 0.5632 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.477, allocations: 1.103 MB / 0.5643 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.4773, allocations: 217.2 kB / 0.5645 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/0.4774, allocations: 10.25 kB / 0.5645 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.4776, allocations: 43.19 kB / 0.5645 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.4778, allocations: 36.41 kB / 0.5646 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.4778, allocations: 18.23 kB / 0.5646 GB, free: 7.828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003782/0.4782, allocations: 322.9 kB / 0.5649 GB, free: 7.586 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4782, allocations: 0 / 0.5649 GB, free: 7.586 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004694/0.4829, allocations: 0.9967 MB / 0.5659 GB, free: 6.637 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 (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.009219/0.4921, allocations: 2.724 MB / 0.5685 GB, free: 4.316 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.4935, allocations: 0.6194 MB / 0.5691 GB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/0.4935, allocations: 4 kB / 0.5692 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006636/0.4942, allocations: 0.5231 MB / 0.5697 GB, free: 3.578 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.4955, allocations: 198.3 kB / 0.5699 GB, free: 3.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008064/0.5035, allocations: 3.668 MB / 0.5734 GB, free: 216 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005273/0.5041, allocations: 0.9598 MB / 0.5744 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005385/0.5047, allocations: 279.4 kB / 0.5746 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/0.505, allocations: 253.3 kB / 0.5749 GB, free: 14.9 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.505, allocations: 0 / 0.5749 GB, free: 14.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08514/0.5901, allocations: 46.28 MB / 0.6201 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.5903, allocations: 234.7 kB / 0.6203 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.221/4.811, allocations: 4.062 kB / 0.6203 GB, free: 0.6406 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat