Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",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.001498/0.001504, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.978/1.978, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.002667/0.002667, allocations: 95.39 kB / 270.9 MB, free: 8.379 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.5137/0.5137, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004775/0.0004777, allocations: 16 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1365, allocations: 58.85 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.12/1.256, allocations: 316.7 MB / 0.7881 GB, free: 54.54 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/1.257, allocations: 85.52 kB / 0.7882 GB, free: 54.49 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.755/2.012, allocations: 97.86 MB / 0.8838 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.797e-06/2.012, allocations: 0 / 0.8838 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.297e-05/2.012, allocations: 16.75 kB / 0.8838 GB, free: 127.6 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002384/2.014, allocations: 0.892 MB / 0.8847 GB, free: 127 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/2.014, allocations: 9.594 kB / 0.8847 GB, free: 127 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001483/2.015, allocations: 76.69 kB / 0.8848 GB, free: 127 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000342/2.015, allocations: 64.66 kB / 0.8848 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/2.016, allocations: 466 kB / 0.8853 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.368e-05/2.016, allocations: 23.23 kB / 0.8853 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.936e-05/2.016, allocations: 34.53 kB / 0.8853 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/2.018, allocations: 0.5137 MB / 0.8858 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/2.018, allocations: 3.812 kB / 0.8858 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.349e-05/2.018, allocations: 20.03 kB / 0.8858 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.926e-05/2.018, allocations: 30 kB / 0.8859 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/2.019, allocations: 456.2 kB / 0.8863 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004531/2.023, allocations: 2.259 MB / 0.8885 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/2.024, allocations: 223.5 kB / 0.8887 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001563/2.026, allocations: 1.02 MB / 0.8897 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003778/2.026, allocations: 213.8 kB / 0.8899 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=18): time 2.345e-06/2.026, allocations: 0 / 0.8899 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=18): time 0.001013/2.027, allocations: 468.6 kB / 0.8904 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/2.027, allocations: 237.5 kB / 0.8906 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007734/2.028, allocations: 469.9 kB / 0.891 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/2.028, allocations: 28.86 kB / 0.8911 GB, free: 123.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/2.028, allocations: 316.3 kB / 0.8914 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.355e-05/2.028, allocations: 65.91 kB / 0.8914 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/2.028, allocations: 5.438 kB / 0.8914 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.157e-05/2.028, allocations: 329.4 kB / 0.8918 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/2.029, allocations: 124.3 kB / 0.8919 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/2.029, allocations: 302.8 kB / 0.8922 GB, free: 123 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004182/2.03, allocations: 191.2 kB / 0.8923 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/2.03, allocations: 3.094 kB / 0.8924 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001123/2.031, allocations: 487.8 kB / 0.8928 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004338/2.031, allocations: 1.695 MB / 0.8945 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/2.031, allocations: 3.219 kB / 0.8945 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/2.031, allocations: 8.156 kB / 0.8945 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000582/2.032, allocations: 77.47 kB / 0.8946 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/2.032, allocations: 10.56 kB / 0.8946 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008002/2.033, allocations: 66.45 kB / 0.8946 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.357e-05/2.033, allocations: 25.03 kB / 0.8947 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/2.033, allocations: 3.062 kB / 0.8947 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001077/2.034, allocations: 465.6 kB / 0.8951 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/2.034, allocations: 13.67 kB / 0.8951 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/2.034, allocations: 5.969 kB / 0.8951 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/2.034, allocations: 69.53 kB / 0.8952 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/2.034, allocations: 17.14 kB / 0.8952 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/2.035, allocations: 46.67 kB / 0.8952 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/2.035, allocations: 18.09 kB / 0.8953 GB, free: 121 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0004333/2.036, allocations: 299.2 kB / 0.8955 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/2.036, allocations: 52 kB / 0.8956 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009058/2.037, allocations: 380.8 kB / 0.896 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/2.037, allocations: 3.953 kB / 0.896 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/2.037, allocations: 0 / 0.896 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/2.037, allocations: 3.406 kB / 0.896 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006048/2.037, allocations: 410.5 kB / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/2.037, allocations: 3.938 kB / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/2.038, allocations: 26.3 kB / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/2.038, allocations: 3.125 kB / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/2.038, allocations: 4.766 kB / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/2.038, allocations: 0 / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.217e-06/2.038, allocations: 3.953 kB / 0.8964 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007304/2.038, allocations: 370.2 kB / 0.8968 GB, free: 120.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/2.039, allocations: 128.9 kB / 0.8969 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/2.039, allocations: 7.312 kB / 0.8969 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004948/2.039, allocations: 17.19 kB / 0.8969 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.98e-05/2.039, allocations: 16.69 kB / 0.8969 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/2.039, allocations: 10 kB / 0.8969 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006246/2.04, allocations: 373.8 kB / 0.8973 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/2.04, allocations: 0 / 0.8973 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002017/2.042, allocations: 468.7 kB / 0.8977 GB, free: 120 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.002807/2.045, allocations: 1.303 MB / 0.899 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001503/2.046, allocations: 0.6475 MB / 0.8996 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/2.046, allocations: 0 / 0.8996 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002801/2.047, allocations: 180.4 kB / 0.8998 GB, free: 119 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/2.048, allocations: 183.6 kB / 0.9 GB, free: 119 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003706/2.052, allocations: 4.33 MB / 0.9042 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/2.053, allocations: 0.8564 MB / 0.905 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004063/2.053, allocations: 152.2 kB / 0.9052 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/2.053, allocations: 0 / 0.9052 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.809/4.862, allocations: 12.52 MB / 0.9174 GB, free: 113.6 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat