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.001516/0.001516, allocations: 96.91 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 175.6 kB / 16.57 MB, free: 6.848 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.528/1.528, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3368/0.3368, allocations: 43.54 MB / 314.5 MB, free: 8.793 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.0005105/0.0005106, allocations: 15.98 kB / 384 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1153, allocations: 58.86 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2264/0.3418, allocations: 23.78 MB / 466.6 MB, free: 36.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.3532, allocations: 11.36 MB / 478 MB, free: 30.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000389/0.3536, allocations: 13.66 kB / 478 MB, free: 30.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006567/0.3543, allocations: 205.1 kB / 478.2 MB, free: 30.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007596/0.3619, allocations: 2.816 MB / 481 MB, free: 29.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006107/0.368, allocations: 1.905 MB / 482.9 MB, free: 28.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000972/0.369, allocations: 0.5408 MB / 483.5 MB, free: 27.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003505/0.3694, allocations: 201 kB / 483.7 MB, free: 27.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007144/0.3701, allocations: 406.1 kB / 484.1 MB, free: 27.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.3703, allocations: 194.3 kB / 484.2 MB, free: 27.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.3703, allocations: 16.34 kB / 484.3 MB, free: 27.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.3834, allocations: 7.013 MB / 491.3 MB, free: 25.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.3836, allocations: 75.19 kB / 491.3 MB, free: 25.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.3838, allocations: 111.1 kB / 491.5 MB, free: 25.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007526/0.3914, allocations: 2.941 MB / 494.4 MB, free: 25.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3914, allocations: 0 / 494.4 MB, free: 25.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3914, allocations: 0 / 494.4 MB, free: 25.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.3914, allocations: 0 / 494.4 MB, free: 25.17 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.005596/0.397, allocations: 1.164 MB / 495.6 MB, free: 24.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.3971, allocations: 9 kB / 495.6 MB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.3972, allocations: 63.72 kB / 495.6 MB, free: 24.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/0.3991, allocations: 224.7 kB / 495.9 MB, free: 24.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006581/0.3997, allocations: 352.8 kB / 496.2 MB, free: 24.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.536e-05/0.3998, allocations: 26.88 kB / 496.2 MB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/0.3999, allocations: 26.72 kB / 496.2 MB, free: 24.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.4017, allocations: 0.5954 MB / 496.8 MB, free: 23.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.4017, allocations: 2.703 kB / 496.8 MB, free: 23.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.4017, allocations: 11.94 kB / 496.9 MB, free: 23.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.4018, allocations: 8.844 kB / 496.9 MB, free: 23.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.4035, allocations: 0.5658 MB / 497.4 MB, free: 23.62 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.003052/0.4066, allocations: 2.646 MB / 0.4884 GB, free: 21.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.4082, allocations: 496.8 kB / 0.4888 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04678/0.455, allocations: 24.42 MB / 0.5127 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.4551, allocations: 35.91 kB / 0.5127 GB, free: 2.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.294e-06/0.4551, allocations: 5.344 kB / 0.5127 GB, free: 2.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.002851/0.4579, allocations: 0.8468 MB / 0.5135 GB, free: 2.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.458, allocations: 105.8 kB / 0.5136 GB, free: 2.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003467/0.4584, allocations: 319.3 kB / 0.514 GB, free: 2.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.4584, allocations: 32.33 kB / 0.514 GB, free: 2.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4585, allocations: 200.6 kB / 0.5142 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.4586, allocations: 84.61 kB / 0.5143 GB, free: 1.805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.579e-05/0.4586, allocations: 4 kB / 0.5143 GB, free: 1.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.79e-05/0.4587, allocations: 346.6 kB / 0.5146 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/0.4591, allocations: 156.2 kB / 0.5147 GB, free: 1.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.4594, allocations: 242 kB / 0.515 GB, free: 1.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.4598, allocations: 169.4 kB / 0.5151 GB, free: 1.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.4599, allocations: 5.219 kB / 0.5151 GB, free: 1.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009884/0.4609, allocations: 449.3 kB / 0.5156 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.4609, allocations: 10.25 kB / 0.5156 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.4609, allocations: 4.5 kB / 0.5156 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.4609, allocations: 6.562 kB / 0.5156 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003367/0.4613, allocations: 87.03 kB / 0.5157 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.4613, allocations: 3.688 kB / 0.5157 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.4617, allocations: 65.44 kB / 0.5157 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.4618, allocations: 19.3 kB / 0.5158 GB, free: 0.8398 MB / 382.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.0002277/0.462, allocations: 165.7 kB / 0.5159 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.4621, allocations: 37.75 kB / 0.5159 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.4645, allocations: 1.93 MB / 0.5178 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.4645, allocations: 32.12 kB / 0.5179 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4645, allocations: 0 / 0.5179 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4645, allocations: 0 / 0.5179 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.4656, allocations: 1.022 MB / 0.5189 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.4656, allocations: 1.219 kB / 0.5189 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/0.4659, allocations: 84.78 kB / 0.5189 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.4659, allocations: 2.656 kB / 0.5189 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.466, allocations: 14.67 kB / 0.519 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.466, allocations: 2.219 kB / 0.519 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.466, allocations: 0 / 0.519 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.4674, allocations: 1.102 MB / 0.52 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.4676, allocations: 215.6 kB / 0.5202 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.4677, allocations: 4 kB / 0.5202 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.468, allocations: 55.81 kB / 0.5203 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.4681, allocations: 35.88 kB / 0.5203 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.4681, allocations: 8 kB / 0.5203 GB, free: 13.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003437/0.4685, allocations: 327.1 kB / 0.5207 GB, free: 13.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4685, allocations: 0 / 0.5207 GB, free: 13.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004472/0.473, allocations: 0.9916 MB / 0.5216 GB, free: 12.15 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.009108/0.4821, allocations: 2.719 MB / 0.5243 GB, free: 9.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.4835, allocations: 0.6195 MB / 0.5249 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.4835, allocations: 0 / 0.5249 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007516/0.4843, allocations: 0.5285 MB / 0.5254 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.4855, allocations: 202.8 kB / 0.5256 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00884/0.4944, allocations: 5.128 MB / 0.5306 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.495, allocations: 0.9836 MB / 0.5316 GB, free: 1.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005799/0.4956, allocations: 278.8 kB / 0.5318 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.4959, allocations: 255.3 kB / 0.5321 GB, free: 1.316 MB / 398.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4959, allocations: 0 / 0.5321 GB, free: 1.316 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06937/0.5653, allocations: 46.12 MB / 0.5771 GB, free: 3.195 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.5655, allocations: 235.1 kB / 0.5773 GB, free: 2.949 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.191/4.756, allocations: 4 kB / 0.5773 GB, free: 2.945 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat