Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002288/0.002288, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.507/2.507, allocations: 205.4 MB / 222.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001166/0.001165, allocations: 104.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5413/0.5413, allocations: 43.55 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006853/0.0006855, allocations: 12 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1412, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.3746/0.5158, allocations: 23.78 MB / 0.502 GB, free: 33.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0191/0.5349, allocations: 11.37 MB / 0.5131 GB, free: 25.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007997/0.5358, allocations: 9.094 kB / 0.5132 GB, free: 25.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.5371, allocations: 200.3 kB / 0.5133 GB, free: 25.85 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01276/0.5499, allocations: 2.823 MB / 0.5161 GB, free: 24.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008108/0.558, allocations: 1.901 MB / 0.518 GB, free: 23.51 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.5595, allocations: 0.54 MB / 0.5185 GB, free: 23.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005027/0.56, allocations: 207.1 kB / 0.5187 GB, free: 23.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001236/0.5613, allocations: 400.3 kB / 0.5191 GB, free: 22.97 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003967/0.5617, allocations: 196.8 kB / 0.5193 GB, free: 22.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.5618, allocations: 16.53 kB / 0.5193 GB, free: 22.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01843/0.5802, allocations: 7.012 MB / 0.5261 GB, free: 21.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.5805, allocations: 79.02 kB / 0.5262 GB, free: 21.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.5807, allocations: 101.8 kB / 0.5263 GB, free: 21.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008165/0.5889, allocations: 2.947 MB / 0.5292 GB, free: 20.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.589, allocations: 0 / 0.5292 GB, free: 20.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.589, allocations: 0 / 0.5292 GB, free: 20.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.589, allocations: 4 kB / 0.5292 GB, free: 20.66 MB / 378.7 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.004997/0.594, allocations: 1.158 MB / 0.5303 GB, free: 19.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.5941, allocations: 9.094 kB / 0.5303 GB, free: 19.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.5943, allocations: 67.02 kB / 0.5304 GB, free: 19.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002597/0.5969, allocations: 218.8 kB / 0.5306 GB, free: 19.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008/0.5977, allocations: 354.6 kB / 0.5309 GB, free: 19.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.338e-05/0.5978, allocations: 32.45 kB / 0.531 GB, free: 19.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.727e-05/0.5979, allocations: 25.47 kB / 0.531 GB, free: 19.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002429/0.6003, allocations: 0.5956 MB / 0.5316 GB, free: 19.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.6004, allocations: 7.25 kB / 0.5316 GB, free: 19.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.393e-05/0.6004, allocations: 11.12 kB / 0.5316 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.6005, allocations: 6.125 kB / 0.5316 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002688/0.6032, allocations: 0.5649 MB / 0.5321 GB, free: 19.1 MB / 378.7 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.004544/0.6077, allocations: 2.645 MB / 0.5347 GB, free: 16.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.6103, allocations: 491.2 kB / 0.5352 GB, free: 16.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08356/0.6939, allocations: 24.42 MB / 0.559 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.694, allocations: 32.59 kB / 0.5591 GB, free: 14.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.404e-06/0.694, allocations: 1.438 kB / 0.5591 GB, free: 14.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.004769/0.6988, allocations: 0.8522 MB / 0.5599 GB, free: 14.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.66e-05/0.6989, allocations: 106.4 kB / 0.56 GB, free: 13.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005958/0.6995, allocations: 310.9 kB / 0.5603 GB, free: 13.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.398e-05/0.6996, allocations: 36.58 kB / 0.5603 GB, free: 13.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.6998, allocations: 249.6 kB / 0.5606 GB, free: 13.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.7, allocations: 82.06 kB / 0.5606 GB, free: 13.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.7, allocations: 13.19 kB / 0.5607 GB, free: 13.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.7002, allocations: 321.6 kB / 0.561 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007571/0.7009, allocations: 159.3 kB / 0.5611 GB, free: 12.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008021/0.7018, allocations: 246.4 kB / 0.5614 GB, free: 12.78 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/0.7025, allocations: 165.7 kB / 0.5615 GB, free: 12.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.7025, allocations: 2.781 kB / 0.5615 GB, free: 12.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001752/0.7043, allocations: 426.4 kB / 0.5619 GB, free: 12.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.7043, allocations: 13.45 kB / 0.5619 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.7044, allocations: 2.062 kB / 0.5619 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.7044, allocations: 5.906 kB / 0.5619 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006353/0.705, allocations: 86.73 kB / 0.562 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.7051, allocations: 7.188 kB / 0.562 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005859/0.7057, allocations: 66.45 kB / 0.5621 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.543e-05/0.7057, allocations: 24.58 kB / 0.5621 GB, free: 12.42 MB / 394.7 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.0003058/0.706, allocations: 166.4 kB / 0.5623 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.619e-05/0.7062, allocations: 32.94 kB / 0.5623 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004018/0.7102, allocations: 1.938 MB / 0.5642 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.777e-05/0.7103, allocations: 26.08 kB / 0.5642 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.7103, allocations: 0 / 0.5642 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.7103, allocations: 10.94 kB / 0.5642 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/0.7122, allocations: 1.022 MB / 0.5652 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.7122, allocations: 1.594 kB / 0.5652 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006358/0.7128, allocations: 80.94 kB / 0.5653 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.7129, allocations: 1.969 kB / 0.5653 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.7129, allocations: 7.594 kB / 0.5653 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.7129, allocations: 4 kB / 0.5653 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7129, allocations: 1.312 kB / 0.5653 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.7155, allocations: 1.1 MB / 0.5664 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003066/0.7158, allocations: 223.5 kB / 0.5666 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.716, allocations: 8 kB / 0.5666 GB, free: 9.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005517/0.7165, allocations: 47.81 kB / 0.5667 GB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.7167, allocations: 35.94 kB / 0.5667 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.7167, allocations: 12 kB / 0.5667 GB, free: 8.965 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005935/0.7173, allocations: 319.1 kB / 0.567 GB, free: 8.656 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7174, allocations: 3.938 kB / 0.567 GB, free: 8.652 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004465/0.7218, allocations: 0.9916 MB / 0.568 GB, free: 7.66 MB / 394.7 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.01113/0.733, allocations: 2.721 MB / 0.5706 GB, free: 4.922 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002145/0.7352, allocations: 0.6117 MB / 0.5712 GB, free: 4.312 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.7352, allocations: 11.92 kB / 0.5713 GB, free: 4.301 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.7365, allocations: 0.5207 MB / 0.5718 GB, free: 3.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/0.7384, allocations: 197.6 kB / 0.5719 GB, free: 3.594 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.7499, allocations: 5.177 MB / 0.577 GB, free: 14.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007663/0.7507, allocations: 0.9797 MB / 0.578 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005823/0.7513, allocations: 251.3 kB / 0.5782 GB, free: 13.06 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/0.7513, allocations: 0 / 0.5782 GB, free: 13.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.469/4.221, allocations: 29.24 MB / 0.6068 GB, free: 15.8 MB / 442.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat