Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002179/0.002178, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.093/2.093, allocations: 205.3 MB / 214.1 MB, free: 14.07 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001131, allocations: 91.98 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2993/0.2993, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.064e-05/2.061e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.4506, allocations: 58.85 MB / 477.2 MB, free: 5.168 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.21/8.66, allocations: 2.771 GB / 3.237 GB, free: 14.8 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/8.661, allocations: 83.58 kB / 3.237 GB, free: 14.76 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.567/10.23, allocations: 234.1 MB / 3.466 GB, free: 74.6 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.954e-06/10.23, allocations: 1.281 kB / 3.466 GB, free: 74.6 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 5.097e-05/10.23, allocations: 12.23 kB / 3.466 GB, free: 74.6 MB / 0.4952 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.006806/10.23, allocations: 1.291 MB / 3.467 GB, free: 74 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 6.219e-05/10.23, allocations: 8.938 kB / 3.467 GB, free: 74 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003096/10.24, allocations: 252 kB / 3.467 GB, free: 73.98 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/10.24, allocations: 407.4 kB / 3.468 GB, free: 73.76 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.851e-05/10.24, allocations: 13.97 kB / 3.468 GB, free: 73.76 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.927e-05/10.24, allocations: 19.19 kB / 3.468 GB, free: 73.76 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001013/10.24, allocations: 349.7 kB / 3.468 GB, free: 73.76 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009484/10.24, allocations: 425.9 kB / 3.468 GB, free: 73.62 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/10.24, allocations: 1.125 kB / 3.468 GB, free: 73.62 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.434e-05/10.24, allocations: 5.078 kB / 3.468 GB, free: 73.62 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/10.24, allocations: 11.61 kB / 3.468 GB, free: 73.62 MB / 0.4952 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.03088/10.27, allocations: 10.24 MB / 3.478 GB, free: 67.26 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/10.27, allocations: 309 kB / 3.479 GB, free: 67.24 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003181/10.27, allocations: 133.2 kB / 3.479 GB, free: 67.23 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07731/10.35, allocations: 24.15 MB / 3.502 GB, free: 52.58 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/10.35, allocations: 34 kB / 3.502 GB, free: 52.54 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=27): time 2.926e-06/10.35, allocations: 0 / 3.502 GB, free: 52.54 MB / 0.4952 GB Notification: Performance of matching and sorting (n=27): time 0.003073/10.35, allocations: 0.5806 MB / 3.503 GB, free: 52.48 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/10.35, allocations: 117.2 kB / 3.503 GB, free: 52.36 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004351/10.35, allocations: 270.3 kB / 3.503 GB, free: 52.25 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 5.368e-05/10.35, allocations: 25.7 kB / 3.503 GB, free: 52.21 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/10.35, allocations: 291.3 kB / 3.504 GB, free: 52.03 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/10.35, allocations: 88.16 kB / 3.504 GB, free: 51.98 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/10.35, allocations: 0 / 3.504 GB, free: 51.98 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.597e-05/10.36, allocations: 329.5 kB / 3.504 GB, free: 51.66 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/10.36, allocations: 109.9 kB / 3.504 GB, free: 51.66 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/10.36, allocations: 221.6 kB / 3.504 GB, free: 51.52 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/10.36, allocations: 219 kB / 3.505 GB, free: 51.52 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/10.36, allocations: 0 / 3.505 GB, free: 51.52 MB / 0.4952 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00201/10.36, allocations: 442.7 kB / 3.505 GB, free: 51.48 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003541/10.36, allocations: 1.403 MB / 3.506 GB, free: 50.03 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/10.36, allocations: 3.969 kB / 3.506 GB, free: 50.03 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.322e-05/10.36, allocations: 7.906 kB / 3.506 GB, free: 50.03 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000787/10.36, allocations: 107.6 kB / 3.506 GB, free: 50.03 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/10.36, allocations: 9.5 kB / 3.506 GB, free: 50.03 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007739/10.36, allocations: 66.3 kB / 3.507 GB, free: 50.02 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.896e-05/10.36, allocations: 19.94 kB / 3.507 GB, free: 50.02 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/10.36, allocations: 6.406 kB / 3.507 GB, free: 50.02 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001617/10.36, allocations: 358.5 kB / 3.507 GB, free: 50.01 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/10.36, allocations: 3.812 kB / 3.507 GB, free: 50.01 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/10.36, allocations: 7.281 kB / 3.507 GB, free: 50.01 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007163/10.36, allocations: 105.2 kB / 3.507 GB, free: 50.01 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/10.36, allocations: 12.34 kB / 3.507 GB, free: 50.01 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005468/10.36, allocations: 58.8 kB / 3.507 GB, free: 50 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/10.36, allocations: 21.27 kB / 3.507 GB, free: 50 MB / 0.4952 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.0001817/10.36, allocations: 116.3 kB / 3.507 GB, free: 49.89 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001738/10.37, allocations: 359.4 kB / 3.508 GB, free: 49.84 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/10.37, allocations: 39.75 kB / 3.508 GB, free: 49.82 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/10.37, allocations: 1.707 MB / 3.509 GB, free: 49.64 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.123e-05/10.37, allocations: 33.52 kB / 3.509 GB, free: 49.63 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/10.37, allocations: 0 / 3.509 GB, free: 49.63 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/10.37, allocations: 3.469 kB / 3.509 GB, free: 49.63 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/10.37, allocations: 0.8811 MB / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/10.37, allocations: 0 / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006502/10.37, allocations: 89.84 kB / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/10.37, allocations: 6.656 kB / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.367e-05/10.37, allocations: 9.781 kB / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/10.37, allocations: 3.156 kB / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/10.37, allocations: 1.031 kB / 3.51 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/10.37, allocations: 0.9806 MB / 3.511 GB, free: 49.2 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005151/10.37, allocations: 258.4 kB / 3.511 GB, free: 49.04 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/10.38, allocations: 3.281 kB / 3.511 GB, free: 49.04 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006007/10.38, allocations: 33.66 kB / 3.511 GB, free: 49.04 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/10.38, allocations: 42.48 kB / 3.512 GB, free: 49.04 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/10.38, allocations: 15.06 kB / 3.512 GB, free: 49.04 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0005151/10.38, allocations: 318.9 kB / 3.512 GB, free: 48.95 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.21e-07/10.38, allocations: 0 / 3.512 GB, free: 48.95 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.007962/10.38, allocations: 1.141 MB / 3.513 GB, free: 48.76 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.02003/10.4, allocations: 2.911 MB / 3.516 GB, free: 47.85 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.002277/10.41, allocations: 0.6564 MB / 3.516 GB, free: 47.83 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/10.41, allocations: 0 / 3.516 GB, free: 47.83 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.001157/10.41, allocations: 434.8 kB / 3.517 GB, free: 47.83 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002913/10.41, allocations: 186.2 kB / 3.517 GB, free: 47.82 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/10.42, allocations: 1.615 MB / 3.519 GB, free: 47.3 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007626/10.42, allocations: 0.9855 MB / 3.52 GB, free: 46.6 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/10.42, allocations: 275.2 kB / 3.52 GB, free: 46.59 MB / 0.4952 GB Notification: Performance of SimCode: time 3.016e-06/10.42, allocations: 0 / 3.52 GB, free: 46.59 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.532/13.96, allocations: 30.86 MB / 3.55 GB, free: 43.61 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat