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.0007838/0.0007837, allocations: 88.19 kB / 15.7 MB, free: 460 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.0008085/0.0008086, allocations: 177.2 kB / 16.58 MB, free: 6.844 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.273/1.273, allocations: 205.4 MB / 222.8 MB, free: 5.648 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.293/0.293, allocations: 43.56 MB / 314.6 MB, free: 9.086 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.0004588/0.0004589, allocations: 12 kB / 384 MB, free: 8.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09184, allocations: 58.85 MB / 442.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1921/0.284, allocations: 26.15 MB / 469 MB, free: 35.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.2944, allocations: 12.39 MB / 481.4 MB, free: 27.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00038/0.2948, allocations: 10.09 kB / 481.4 MB, free: 27.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005554/0.2954, allocations: 198.7 kB / 481.6 MB, free: 27.86 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.007004/0.3024, allocations: 2.844 MB / 484.5 MB, free: 26.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005223/0.3076, allocations: 1.833 MB / 486.3 MB, free: 25.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.3087, allocations: 0.9819 MB / 487.3 MB, free: 25.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002838/0.309, allocations: 206.3 kB / 487.5 MB, free: 25.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005556/0.3096, allocations: 379.3 kB / 487.9 MB, free: 25.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.3098, allocations: 257.2 kB / 488.1 MB, free: 24.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.49e-05/0.3099, allocations: 16.22 kB / 488.1 MB, free: 24.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01211/0.322, allocations: 6.817 MB / 494.9 MB, free: 23.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.3222, allocations: 85.69 kB / 495 MB, free: 23.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.3223, allocations: 103 kB / 495.1 MB, free: 23.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006622/0.329, allocations: 2.951 MB / 498.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.329, allocations: 0 / 498.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.329, allocations: 0 / 498.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.329, allocations: 0 / 498.1 MB, free: 22.7 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.00451/0.3336, allocations: 1.171 MB / 499.2 MB, free: 21.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3336, allocations: 9.406 kB / 499.3 MB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.99e-05/0.3337, allocations: 64.67 kB / 499.3 MB, free: 21.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.3354, allocations: 220 kB / 499.5 MB, free: 21.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004514/0.3359, allocations: 352.6 kB / 499.9 MB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.3359, allocations: 26.28 kB / 499.9 MB, free: 21.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.117e-05/0.336, allocations: 27.72 kB / 499.9 MB, free: 21.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.3374, allocations: 0.5981 MB / 0.4888 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.3375, allocations: 5.375 kB / 0.4888 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.3375, allocations: 15.28 kB / 0.4888 GB, free: 21.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.3375, allocations: 8.375 kB / 0.4888 GB, free: 21.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.339, allocations: 0.5594 MB / 0.4894 GB, free: 21.14 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.002443/0.3415, allocations: 2.641 MB / 0.4919 GB, free: 18.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.3429, allocations: 494.8 kB / 0.4924 GB, free: 18.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000541/0.3435, allocations: 206.1 kB / 0.4926 GB, free: 18.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0391/0.3826, allocations: 24.42 MB / 0.5165 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.3827, allocations: 36.84 kB / 0.5165 GB, free: 15.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.034e-06/0.3827, allocations: 4 kB / 0.5165 GB, free: 15.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002607/0.3853, allocations: 0.8491 MB / 0.5173 GB, free: 15.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.3854, allocations: 106.2 kB / 0.5174 GB, free: 15.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/0.3858, allocations: 315.2 kB / 0.5177 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.3858, allocations: 33.64 kB / 0.5178 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.386, allocations: 203 kB / 0.518 GB, free: 14.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.826e-05/0.3861, allocations: 82.34 kB / 0.518 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/0.3861, allocations: 9.906 kB / 0.518 GB, free: 14.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3862, allocations: 342.4 kB / 0.5184 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/0.3866, allocations: 159.6 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003823/0.3869, allocations: 245.8 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.3873, allocations: 170 kB / 0.5189 GB, free: 14.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3873, allocations: 5.875 kB / 0.5189 GB, free: 14.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008366/0.3882, allocations: 441.3 kB / 0.5193 GB, free: 13.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3882, allocations: 13.55 kB / 0.5194 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3882, allocations: 3.656 kB / 0.5194 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.3882, allocations: 3.875 kB / 0.5194 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.3885, allocations: 85.52 kB / 0.5195 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3885, allocations: 6.719 kB / 0.5195 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.3888, allocations: 71.56 kB / 0.5195 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3889, allocations: 14.12 kB / 0.5195 GB, free: 13.83 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.0001697/0.3891, allocations: 166 kB / 0.5197 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.3891, allocations: 46.78 kB / 0.5197 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002199/0.3913, allocations: 1.925 MB / 0.5216 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.759e-05/0.3914, allocations: 28.95 kB / 0.5217 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3914, allocations: 0 / 0.5217 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3914, allocations: 3.984 kB / 0.5217 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009483/0.3923, allocations: 1.022 MB / 0.5227 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3924, allocations: 0 / 0.5227 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.3926, allocations: 79.94 kB / 0.5227 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3927, allocations: 4 kB / 0.5227 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.3927, allocations: 8 kB / 0.5227 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3927, allocations: 0 / 0.5227 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3927, allocations: 2.062 kB / 0.5227 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.394, allocations: 1.109 MB / 0.5238 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.3942, allocations: 215.6 kB / 0.524 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.3943, allocations: 4 kB / 0.524 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.3945, allocations: 51.81 kB / 0.5241 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.3946, allocations: 35.94 kB / 0.5241 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.3947, allocations: 8 kB / 0.5241 GB, free: 9.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.395, allocations: 323.1 kB / 0.5244 GB, free: 9.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.395, allocations: 3.938 kB / 0.5244 GB, free: 9.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004167/0.3992, allocations: 0.9916 MB / 0.5254 GB, free: 8.648 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.00648/0.4057, allocations: 2.718 MB / 0.5281 GB, free: 5.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.4067, allocations: 0.6194 MB / 0.5287 GB, free: 5.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4067, allocations: 4 kB / 0.5287 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.4074, allocations: 0.5207 MB / 0.5292 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.4084, allocations: 206.9 kB / 0.5294 GB, free: 4.574 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00636/0.4148, allocations: 3.647 MB / 0.5329 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.4152, allocations: 0.9681 MB / 0.5339 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000478/0.4157, allocations: 273.9 kB / 0.5341 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.416, allocations: 255.3 kB / 0.5344 GB, free: 15.34 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.416, allocations: 0 / 0.5344 GB, free: 15.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06749/0.4835, allocations: 46.16 MB / 0.5795 GB, free: 1.172 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002071/0.4838, allocations: 244.7 kB / 0.5797 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.71/4.193, allocations: 0 / 0.5797 GB, free: 0.9219 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