Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",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.002085/0.002085, allocations: 177.8 kB / 8.36 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.159/2.159, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001099/0.001098, allocations: 84.2 kB / 262.1 MB, free: 13.88 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.2908/0.2908, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.132e-05, allocations: 4 kB / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4003, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.188/8.588, allocations: 2.772 GB / 3.238 GB, free: 13.75 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003301/8.589, allocations: 86.84 kB / 3.238 GB, free: 13.7 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.103/11.69, allocations: 0.5721 GB / 3.81 GB, free: 33.56 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.834e-06/11.69, allocations: 1.812 kB / 3.81 GB, free: 33.56 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001364/11.69, allocations: 37.56 kB / 3.81 GB, free: 33.55 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01471/11.71, allocations: 2.544 MB / 3.812 GB, free: 31.93 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/11.71, allocations: 11.41 kB / 3.812 GB, free: 31.93 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009945/11.72, allocations: 0.8679 MB / 3.813 GB, free: 31.57 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003487/11.72, allocations: 1.033 MB / 3.814 GB, free: 30.79 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/11.72, allocations: 44.06 kB / 3.814 GB, free: 30.79 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003162/11.72, allocations: 67.16 kB / 3.814 GB, free: 30.79 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004389/11.73, allocations: 1.381 MB / 3.816 GB, free: 29.85 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003348/11.73, allocations: 1.366 MB / 3.817 GB, free: 28.36 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.395e-05/11.73, allocations: 7.938 kB / 3.817 GB, free: 28.35 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001889/11.73, allocations: 4 kB / 3.817 GB, free: 28.34 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.013e-05/11.73, allocations: 28.94 kB / 3.817 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5605/12.29, allocations: 46.48 MB / 3.862 GB, free: 57.99 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004499/12.29, allocations: 1.173 MB / 3.864 GB, free: 57.96 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/12.3, allocations: 0.4917 MB / 3.864 GB, free: 57.96 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0546/12.35, allocations: 16.41 MB / 3.88 GB, free: 47.92 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.752e-05/12.35, allocations: 56.08 kB / 3.88 GB, free: 47.88 MB / 0.5265 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001457/12.35, allocations: 112.4 kB / 3.88 GB, free: 47.88 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=103): time 7.835e-06/12.35, allocations: 0 / 3.88 GB, free: 47.88 MB / 0.5265 GB Notification: Performance of matching and sorting (n=103): time 0.01458/12.37, allocations: 2.391 MB / 3.883 GB, free: 47.79 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/12.37, allocations: 192.4 kB / 3.883 GB, free: 47.57 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/12.37, allocations: 0.7155 MB / 3.883 GB, free: 47.42 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0003934/12.37, allocations: 30.11 kB / 3.883 GB, free: 47.39 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/12.37, allocations: 0.5962 MB / 3.884 GB, free: 47.1 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005891/12.37, allocations: 338.2 kB / 3.884 GB, free: 46.93 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/12.37, allocations: 0 / 3.884 GB, free: 46.93 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0001247/12.37, allocations: 370 kB / 3.885 GB, free: 46.61 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/12.37, allocations: 436 kB / 3.885 GB, free: 46.61 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00157/12.37, allocations: 0.7416 MB / 3.886 GB, free: 46.28 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007008/12.38, allocations: 0.9837 MB / 3.887 GB, free: 46.27 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.389e-05/12.38, allocations: 5.719 kB / 3.887 GB, free: 46.27 MB / 0.5265 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.009737/12.39, allocations: 1.875 MB / 3.889 GB, free: 46.17 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007471/12.39, allocations: 3.144 MB / 3.892 GB, free: 42.91 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/12.39, allocations: 6.438 kB / 3.892 GB, free: 42.91 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006556/12.4, allocations: 0.6892 MB / 3.892 GB, free: 42.9 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/12.4, allocations: 423 kB / 3.893 GB, free: 42.9 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/12.4, allocations: 1.091 MB / 3.894 GB, free: 42.37 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003178/12.41, allocations: 164.6 kB / 3.894 GB, free: 42.36 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005098/12.41, allocations: 80.64 kB / 3.894 GB, free: 42.36 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/12.41, allocations: 3.625 kB / 3.894 GB, free: 42.36 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008066/12.42, allocations: 1.514 MB / 3.896 GB, free: 42.32 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/12.42, allocations: 11.78 kB / 3.896 GB, free: 42.32 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004399/12.42, allocations: 80.11 kB / 3.896 GB, free: 42.31 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003495/12.42, allocations: 451.8 kB / 3.896 GB, free: 42.31 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/12.42, allocations: 1.686 MB / 3.898 GB, free: 41.01 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002478/12.42, allocations: 151.6 kB / 3.898 GB, free: 41 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/12.43, allocations: 79.03 kB / 3.898 GB, free: 41 MB / 0.5265 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005507/12.43, allocations: 145.1 kB / 3.898 GB, free: 40.89 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009785/12.44, allocations: 1.611 MB / 3.9 GB, free: 40.76 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007075/12.44, allocations: 122.1 kB / 3.9 GB, free: 40.7 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/12.45, allocations: 5.354 MB / 3.905 GB, free: 40.19 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.817e-05/12.45, allocations: 60.41 kB / 3.905 GB, free: 40.19 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/12.45, allocations: 0 / 3.905 GB, free: 40.19 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-05/12.45, allocations: 7.547 kB / 3.905 GB, free: 40.19 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/12.46, allocations: 6.627 MB / 3.912 GB, free: 39.67 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/12.46, allocations: 5.312 kB / 3.912 GB, free: 39.67 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002097/12.47, allocations: 287.1 kB / 3.912 GB, free: 39.67 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00563/12.47, allocations: 1.879 MB / 3.914 GB, free: 39.61 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003193/12.47, allocations: 17.84 kB / 3.914 GB, free: 39.61 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003466/12.48, allocations: 1.867 MB / 3.915 GB, free: 39.04 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/12.48, allocations: 0 / 3.915 GB, free: 39.04 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008269/12.48, allocations: 2.993 MB / 3.918 GB, free: 38.58 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002082/12.49, allocations: 0.7709 MB / 3.919 GB, free: 38.27 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000612/12.49, allocations: 3.594 kB / 3.919 GB, free: 38.27 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00253/12.49, allocations: 115.7 kB / 3.919 GB, free: 38.27 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005088/12.49, allocations: 124.5 kB / 3.919 GB, free: 38.26 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/12.49, allocations: 47.34 kB / 3.919 GB, free: 38.26 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.002538/12.49, allocations: 1.243 MB / 3.921 GB, free: 38.12 MB / 0.5265 GB Notification: Performance of sort global known variables: time 9.31e-07/12.49, allocations: 1.094 kB / 3.921 GB, free: 38.12 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.01044/12.5, allocations: 1.805 MB / 3.922 GB, free: 37.99 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 33 ($cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse30.phase,$cse30.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse56.phase,$cse56.region,$cse59.phase,$cse59.region,$cse62.phase,$cse62.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01995/12.52, allocations: 5.384 MB / 3.928 GB, free: 36.77 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.006352/12.53, allocations: 2.326 MB / 3.93 GB, free: 36.62 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/12.53, allocations: 0 / 3.93 GB, free: 36.62 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.002359/12.53, allocations: 1.079 MB / 3.931 GB, free: 36.61 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005725/12.54, allocations: 0.5521 MB / 3.932 GB, free: 36.59 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/12.55, allocations: 3.951 MB / 3.935 GB, free: 35.61 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/12.55, allocations: 1.661 MB / 3.937 GB, free: 34.88 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002107/12.56, allocations: 0.9452 MB / 3.938 GB, free: 34.87 MB / 0.5265 GB Notification: Performance of SimCode: time 1.873e-06/12.56, allocations: 0 / 3.938 GB, free: 34.87 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.244/16.8, allocations: 64.82 MB / 4.001 GB, free: 27.68 MB / 0.5265 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat