Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",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.001664/0.001664, allocations: 183.1 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0009158/0.0009158, allocations: 85.56 kB / 267 MB, free: 9.273 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.4573/0.4573, allocations: 43.48 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.567e-05/3.569e-05, allocations: 4 kB / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1358, allocations: 58.84 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.287/7.423, allocations: 2.772 GB / 3.244 GB, free: 55.32 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/7.424, allocations: 87.62 kB / 3.245 GB, free: 55.27 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.8747/8.298, allocations: 236.9 MB / 3.476 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.615e-06/8.299, allocations: 0 / 3.476 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.649e-05/8.299, allocations: 16 kB / 3.476 GB, free: 37.78 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005981/8.305, allocations: 1.283 MB / 3.477 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/8.305, allocations: 11.97 kB / 3.477 GB, free: 36.44 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002386/8.305, allocations: 70.53 kB / 3.477 GB, free: 36.36 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002383/8.307, allocations: 251.2 kB / 3.478 GB, free: 36.11 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008867/8.308, allocations: 417.6 kB / 3.478 GB, free: 35.67 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/8.308, allocations: 24.78 kB / 3.478 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.074e-05/8.308, allocations: 36.52 kB / 3.478 GB, free: 35.61 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/8.31, allocations: 0.6284 MB / 3.479 GB, free: 34.94 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/8.31, allocations: 0 / 3.479 GB, free: 34.94 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.323e-05/8.31, allocations: 19.95 kB / 3.479 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/8.31, allocations: 8 kB / 3.479 GB, free: 34.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/8.311, allocations: 0.5299 MB / 3.479 GB, free: 34.38 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.00323/8.315, allocations: 2.72 MB / 3.482 GB, free: 31.42 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/8.316, allocations: 0.5114 MB / 3.482 GB, free: 30.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/8.316, allocations: 140.8 kB / 3.482 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04241/8.359, allocations: 24.16 MB / 3.506 GB, free: 3.707 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/8.359, allocations: 40.91 kB / 3.506 GB, free: 3.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 3.005e-06/8.359, allocations: 0 / 3.506 GB, free: 3.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.002344/8.361, allocations: 0.6608 MB / 3.507 GB, free: 2.992 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/8.361, allocations: 106.8 kB / 3.507 GB, free: 2.863 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/8.362, allocations: 335.1 kB / 3.507 GB, free: 2.527 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.595e-05/8.362, allocations: 29.7 kB / 3.507 GB, free: 2.492 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/8.362, allocations: 228.1 kB / 3.507 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.652e-05/8.362, allocations: 94.66 kB / 3.507 GB, free: 2.172 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/8.362, allocations: 4 kB / 3.507 GB, free: 2.168 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000112/8.362, allocations: 362.7 kB / 3.508 GB, free: 1.805 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/8.363, allocations: 111.9 kB / 3.508 GB, free: 1.695 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/8.363, allocations: 224.2 kB / 3.508 GB, free: 1.422 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/8.363, allocations: 141.2 kB / 3.508 GB, free: 1.285 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/8.363, allocations: 0 / 3.508 GB, free: 1.285 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006703/8.364, allocations: 400.8 kB / 3.509 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.3308/8.695, allocations: 1.398 MB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/8.695, allocations: 3.031 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.598e-05/8.695, allocations: 7.25 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000668/8.695, allocations: 106.6 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/8.695, allocations: 10.06 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006874/8.696, allocations: 81.89 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.937e-05/8.696, allocations: 21.34 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/8.696, allocations: 2.875 kB / 3.51 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008659/8.697, allocations: 336.1 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/8.697, allocations: 5.531 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/8.697, allocations: 5.5 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/8.698, allocations: 113 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/8.698, allocations: 7.938 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/8.698, allocations: 70.8 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.717e-05/8.698, allocations: 20.39 kB / 3.511 GB, free: 74.99 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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.0001967/8.698, allocations: 124.5 kB / 3.511 GB, free: 74.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/8.699, allocations: 45.28 kB / 3.511 GB, free: 74.88 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003191/8.702, allocations: 1.909 MB / 3.513 GB, free: 74.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.813e-05/8.702, allocations: 35.05 kB / 3.513 GB, free: 74.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/8.702, allocations: 1 kB / 3.513 GB, free: 74.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/8.702, allocations: 2.438 kB / 3.513 GB, free: 74.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/8.704, allocations: 1.051 MB / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/8.704, allocations: 0 / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004294/8.705, allocations: 86.7 kB / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/8.705, allocations: 2.156 kB / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/8.705, allocations: 14.09 kB / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/8.705, allocations: 4.344 kB / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/8.705, allocations: 0.75 kB / 3.514 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/8.707, allocations: 1.039 MB / 3.515 GB, free: 74.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006481/8.707, allocations: 264.7 kB / 3.515 GB, free: 74.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/8.708, allocations: 8.797 kB / 3.515 GB, free: 74.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006164/8.708, allocations: 51.98 kB / 3.515 GB, free: 74.07 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/8.708, allocations: 34.02 kB / 3.515 GB, free: 74.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.456e-05/8.708, allocations: 18.36 kB / 3.515 GB, free: 74.07 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006321/8.709, allocations: 363.6 kB / 3.516 GB, free: 73.99 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.2e-07/8.709, allocations: 3.391 kB / 3.516 GB, free: 73.99 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008091/8.717, allocations: 1.158 MB / 3.517 GB, free: 73.98 MB / 0.5105 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * 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.01164/8.729, allocations: 2.925 MB / 3.52 GB, free: 73.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00193/8.731, allocations: 0.7458 MB / 3.52 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/8.731, allocations: 0 / 3.52 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007811/8.732, allocations: 488.1 kB / 3.521 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/8.734, allocations: 222.2 kB / 3.521 GB, free: 73.17 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00842/8.742, allocations: 1.697 MB / 3.523 GB, free: 72.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007612/8.743, allocations: 1.009 MB / 3.524 GB, free: 72.15 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001452/8.744, allocations: 0.5658 MB / 3.524 GB, free: 72.15 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000429/8.745, allocations: 282.3 kB / 3.525 GB, free: 72.14 MB / 0.5105 GB Notification: Performance of SimCode: time 1.453e-06/8.745, allocations: 2.375 kB / 3.525 GB, free: 72.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08551/8.83, allocations: 43.63 MB / 3.567 GB, free: 71.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003334/8.831, allocations: 212.9 kB / 3.567 GB, free: 71.04 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.575/12.41, allocations: 0 / 3.567 GB, free: 71.04 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat