Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.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.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",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.001656/0.001662, allocations: 186.7 kB / 16.4 MB, free: 5.625 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.122/2.122, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001217/0.001216, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3058/0.3058, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006497/0.0006499, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1361, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse): time 0.08335/0.2195, allocations: 35.53 MB / 0.5135 GB, free: 5.613 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3803/0.6, allocations: 10.31 MB / 0.5236 GB, free: 11.28 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.6023, allocations: 47.94 kB / 0.5236 GB, free: 11.28 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.6055, allocations: 0.6113 MB / 0.5242 GB, free: 11.28 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01451/0.6201, allocations: 3.223 MB / 0.5274 GB, free: 11.23 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0166/0.6367, allocations: 3.411 MB / 0.5307 GB, free: 11.11 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004972/0.6417, allocations: 1.71 MB / 0.5324 GB, free: 11.11 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002195/0.644, allocations: 0.7784 MB / 0.5332 GB, free: 11.04 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01203/0.6561, allocations: 4.182 MB / 0.5372 GB, free: 10.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006731/0.6628, allocations: 2.39 MB / 0.5396 GB, free: 10.61 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004684/0.6634, allocations: 54.41 kB / 0.5396 GB, free: 10.61 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01075/0.6741, allocations: 3.222 MB / 0.5428 GB, free: 9.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007406/0.675, allocations: 261.8 kB / 0.543 GB, free: 9.867 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008223/0.6758, allocations: 257.1 kB / 0.5433 GB, free: 9.836 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00573/0.6815, allocations: 1.907 MB / 0.5451 GB, free: 8.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6816, allocations: 0 / 0.5451 GB, free: 8.969 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.6816, allocations: 0 / 0.5451 GB, free: 8.969 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.704e-05/0.6817, allocations: 0 / 0.5451 GB, free: 8.969 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.005231/0.6869, allocations: 1.641 MB / 0.5467 GB, free: 7.887 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.687, allocations: 13.22 kB / 0.5467 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004261/0.6874, allocations: 136.3 kB / 0.5469 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003902/0.6913, allocations: 325.3 kB / 0.5472 GB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.6934, allocations: 0.7519 MB / 0.5479 GB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.323e-05/0.6935, allocations: 59.84 kB / 0.548 GB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.6938, allocations: 85.16 kB / 0.5481 GB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004828/0.6986, allocations: 1.237 MB / 0.5493 GB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/0.6987, allocations: 3.094 kB / 0.5493 GB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001847/0.6989, allocations: 39.22 kB / 0.5493 GB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/0.6989, allocations: 24.33 kB / 0.5493 GB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/0.7038, allocations: 1.039 MB / 0.5503 GB, free: 6.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009439/0.7133, allocations: 5.426 MB / 0.5556 GB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003505/0.7169, allocations: 0.6909 MB / 0.5563 GB, free: 2.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007974/0.7177, allocations: 0.9354 MB / 0.5572 GB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.7178, allocations: 41.66 kB / 0.5573 GB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009747/0.7188, allocations: 113.7 kB / 0.5574 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=65): time 4.519e-06/0.7188, allocations: 0 / 0.5574 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of matching and sorting (n=65): time 0.01081/0.7296, allocations: 1.725 MB / 0.5591 GB, free: 15.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.7298, allocations: 192.6 kB / 0.5592 GB, free: 15.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.7318, allocations: 0.9607 MB / 0.5602 GB, free: 14.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002674/0.7321, allocations: 36.7 kB / 0.5602 GB, free: 14.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004751/0.7326, allocations: 0.4936 MB / 0.5607 GB, free: 14.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003386/0.7329, allocations: 229.9 kB / 0.5609 GB, free: 14.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.181e-05/0.733, allocations: 15.88 kB / 0.5609 GB, free: 14.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.7332, allocations: 345.2 kB / 0.5613 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001492/0.7347, allocations: 358.8 kB / 0.5616 GB, free: 13.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.7364, allocations: 0.5576 MB / 0.5622 GB, free: 12.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.7381, allocations: 423.5 kB / 0.5626 GB, free: 12.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.7381, allocations: 4 kB / 0.5626 GB, free: 12.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004321/0.7424, allocations: 1.121 MB / 0.5637 GB, free: 11.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009394/0.7434, allocations: 1.829 MB / 0.5654 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.7434, allocations: 4 kB / 0.5654 GB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/0.7542, allocations: 0.8313 MB / 0.5663 GB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001951/0.7562, allocations: 259.3 kB / 0.5665 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.7578, allocations: 0.7852 MB / 0.5673 GB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.7597, allocations: 88.83 kB / 0.5674 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.76, allocations: 90.83 kB / 0.5674 GB, free: 7.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.76, allocations: 6.969 kB / 0.5674 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0043/0.7643, allocations: 1.018 MB / 0.5684 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.7644, allocations: 4 kB / 0.5684 GB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000477/0.7649, allocations: 71 kB / 0.5685 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/0.767, allocations: 282.7 kB / 0.5688 GB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/0.7697, allocations: 1.642 MB / 0.5704 GB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.771, allocations: 82.22 kB / 0.5705 GB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/0.7713, allocations: 82.16 kB / 0.5705 GB, free: 5.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008702/0.7722, allocations: 329.2 kB / 0.5709 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004428/0.7726, allocations: 118.6 kB / 0.571 GB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006822/0.7795, allocations: 1.849 MB / 0.5728 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.7796, allocations: 11.95 kB / 0.5728 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.7796, allocations: 0 / 0.5728 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.7796, allocations: 7.984 kB / 0.5728 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.785, allocations: 1.862 MB / 0.5746 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.7851, allocations: 4 kB / 0.5746 GB, free: 1.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009009/0.786, allocations: 128.3 kB / 0.5747 GB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00555/0.7916, allocations: 0.6316 MB / 0.5754 GB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.7918, allocations: 25.64 kB / 0.5754 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.7932, allocations: 0.8241 MB / 0.5762 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/0.7932, allocations: 10.58 kB / 0.5762 GB, free: 388 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.7969, allocations: 1.088 MB / 0.5773 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.798, allocations: 337.8 kB / 0.5776 GB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003288/0.7983, allocations: 13.81 kB / 0.5776 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.7997, allocations: 71.5 kB / 0.5777 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.7999, allocations: 58.86 kB / 0.5777 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.8001, allocations: 50.41 kB / 0.5778 GB, free: 14.99 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001643/0.8018, allocations: 0.737 MB / 0.5785 GB, free: 14.35 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8018, allocations: 0 / 0.5785 GB, free: 14.35 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004021/0.8058, allocations: 0.8469 MB / 0.5793 GB, free: 13.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.006678/0.8125, allocations: 2.52 MB / 0.5818 GB, free: 10.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006024/0.8186, allocations: 1.508 MB / 0.5832 GB, free: 9.488 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.8187, allocations: 3.938 kB / 0.5833 GB, free: 9.484 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.8203, allocations: 411.6 kB / 0.5836 GB, free: 9.094 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004807/0.8252, allocations: 0.5149 MB / 0.5841 GB, free: 8.582 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.8354, allocations: 6.21 MB / 0.5902 GB, free: 2.254 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009389/0.8364, allocations: 1.095 MB / 0.5913 GB, free: 1.129 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/0.838, allocations: 487.2 kB / 0.5917 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of SimCode: time 1.292e-06/0.838, allocations: 0 / 0.5917 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.334/4.172, allocations: 31.81 MB / 0.6228 GB, free: 0.8984 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat does not exist to compare? outputFormat=mat