Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.001655/0.001655, allocations: 182.1 kB / 16.4 MB, free: 5.75 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.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001115/0.001115, allocations: 97.53 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.5855/0.5855, allocations: 43.55 MB / 362.7 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004937/0.0004937, allocations: 16 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1387, allocations: 58.83 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.3685/0.5073, allocations: 23.81 MB / 0.5021 GB, free: 33.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01951/0.5269, allocations: 11.36 MB / 0.5132 GB, free: 25.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006736/0.5276, allocations: 13.78 kB / 0.5132 GB, free: 25.79 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.5288, allocations: 212.2 kB / 0.5134 GB, free: 25.68 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01284/0.5417, allocations: 2.811 MB / 0.5161 GB, free: 24.37 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008531/0.5503, allocations: 1.907 MB / 0.518 GB, free: 23.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.5517, allocations: 0.5439 MB / 0.5185 GB, free: 23.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005126/0.5522, allocations: 203.5 kB / 0.5187 GB, free: 22.98 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.5535, allocations: 404.1 kB / 0.5191 GB, free: 22.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.554, allocations: 207.1 kB / 0.5193 GB, free: 22.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.5541, allocations: 13.16 kB / 0.5193 GB, free: 22.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01883/0.5729, allocations: 7.006 MB / 0.5261 GB, free: 21.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.5732, allocations: 83.11 kB / 0.5262 GB, free: 21.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.5734, allocations: 108.8 kB / 0.5263 GB, free: 21.05 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008538/0.582, allocations: 2.942 MB / 0.5292 GB, free: 20.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.582, allocations: 0 / 0.5292 GB, free: 20.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.788e-06/0.582, allocations: 0 / 0.5292 GB, free: 20.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.5821, allocations: 0 / 0.5292 GB, free: 20.48 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.005068/0.5871, allocations: 1.18 MB / 0.5304 GB, free: 19.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.5872, allocations: 8.969 kB / 0.5304 GB, free: 19.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001689/0.5874, allocations: 67.22 kB / 0.5304 GB, free: 19.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002593/0.59, allocations: 219.4 kB / 0.5306 GB, free: 19.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008694/0.5909, allocations: 359.3 kB / 0.531 GB, free: 19.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.825e-05/0.591, allocations: 29.44 kB / 0.531 GB, free: 19.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.596e-05/0.5911, allocations: 28.3 kB / 0.531 GB, free: 19.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.5937, allocations: 0.6107 MB / 0.5316 GB, free: 19.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.5938, allocations: 0 / 0.5316 GB, free: 19.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.5939, allocations: 19.25 kB / 0.5316 GB, free: 19.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.5939, allocations: 13.59 kB / 0.5317 GB, free: 19.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.597, allocations: 0.5867 MB / 0.5322 GB, free: 18.91 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.004845/0.6019, allocations: 2.641 MB / 0.5348 GB, free: 16.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/0.6047, allocations: 0.4949 MB / 0.5353 GB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0822/0.6869, allocations: 24.42 MB / 0.5591 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.687, allocations: 39.97 kB / 0.5592 GB, free: 14.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.295e-06/0.6871, allocations: 1.719 kB / 0.5592 GB, free: 14.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.00505/0.6921, allocations: 0.8922 MB / 0.5601 GB, free: 13.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.6923, allocations: 105.6 kB / 0.5602 GB, free: 13.64 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.6928, allocations: 311.4 kB / 0.5605 GB, free: 13.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.15e-05/0.6929, allocations: 30.95 kB / 0.5605 GB, free: 13.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.6932, allocations: 259.3 kB / 0.5607 GB, free: 13.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.6933, allocations: 86.22 kB / 0.5608 GB, free: 13.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/0.6933, allocations: 5.062 kB / 0.5608 GB, free: 13.08 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.6935, allocations: 321.3 kB / 0.5611 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008687/0.6944, allocations: 173.1 kB / 0.5613 GB, free: 12.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009028/0.6953, allocations: 261.5 kB / 0.5615 GB, free: 12.49 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.6962, allocations: 176 kB / 0.5617 GB, free: 12.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.6962, allocations: 1.844 kB / 0.5617 GB, free: 12.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001951/0.6981, allocations: 463.9 kB / 0.5621 GB, free: 12.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.6982, allocations: 5.688 kB / 0.5622 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.6982, allocations: 4.344 kB / 0.5622 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.6983, allocations: 3.812 kB / 0.5622 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007059/0.699, allocations: 105 kB / 0.5623 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.699, allocations: 5.812 kB / 0.5623 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006408/0.6997, allocations: 69.92 kB / 0.5623 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.559e-05/0.6997, allocations: 24.39 kB / 0.5624 GB, free: 12.11 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.0003144/0.7001, allocations: 159.4 kB / 0.5625 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.7002, allocations: 33.56 kB / 0.5625 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004121/0.7043, allocations: 1.966 MB / 0.5645 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.764e-05/0.7044, allocations: 30.02 kB / 0.5645 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.7044, allocations: 0 / 0.5645 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.7045, allocations: 3.984 kB / 0.5645 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.7062, allocations: 1.018 MB / 0.5655 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.7063, allocations: 0 / 0.5655 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007055/0.707, allocations: 97.73 kB / 0.5656 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.707, allocations: 0 / 0.5656 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.7071, allocations: 8 kB / 0.5656 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-06/0.7071, allocations: 0 / 0.5656 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7071, allocations: 4 kB / 0.5656 GB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.7098, allocations: 1.128 MB / 0.5667 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.7102, allocations: 219.4 kB / 0.5669 GB, free: 8.586 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.7103, allocations: 15.92 kB / 0.5669 GB, free: 8.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006064/0.7109, allocations: 43.97 kB / 0.567 GB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.7111, allocations: 39.88 kB / 0.567 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.7112, allocations: 12 kB / 0.567 GB, free: 8.477 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005979/0.7118, allocations: 323.1 kB / 0.5673 GB, free: 8.164 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7118, allocations: 0 / 0.5673 GB, free: 8.164 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004616/0.7164, allocations: 0.9916 MB / 0.5683 GB, free: 7.172 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: 18 ($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) * 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.01165/0.7281, allocations: 2.757 MB / 0.571 GB, free: 4.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.7305, allocations: 0.6429 MB / 0.5716 GB, free: 3.758 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.7306, allocations: 4 kB / 0.5716 GB, free: 3.754 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.732, allocations: 0.5376 MB / 0.5721 GB, free: 3.219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/0.7341, allocations: 204.1 kB / 0.5723 GB, free: 3.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.7461, allocations: 5.228 MB / 0.5774 GB, free: 13.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006948/0.7468, allocations: 0.9836 MB / 0.5784 GB, free: 12.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005401/0.7474, allocations: 259.2 kB / 0.5786 GB, free: 12.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7474, allocations: 0 / 0.5786 GB, free: 12.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.597/4.345, allocations: 29.28 MB / 0.6072 GB, free: 15.14 MB / 442.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat