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.002192/0.002192, allocations: 177.8 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.063/2.063, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001153/0.001153, allocations: 90.81 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.2954/0.2954, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.368e-05/2.37e-05, allocations: 224 / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4211, allocations: 58.85 MB / 477.2 MB, free: 5.168 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8128/1.234, allocations: 316 MB / 0.7746 GB, free: 20.74 MB / 475.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/1.234, allocations: 80.95 kB / 0.7747 GB, free: 20.7 MB / 475.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7073/1.942, allocations: 96.77 MB / 0.8692 GB, free: 151.6 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.164e-06/1.942, allocations: 0 / 0.8692 GB, free: 151.6 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 5.325e-05/1.942, allocations: 19.27 kB / 0.8692 GB, free: 151.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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002235/1.944, allocations: 0.8279 MB / 0.87 GB, free: 150.9 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/1.944, allocations: 9.938 kB / 0.87 GB, free: 150.9 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004516/1.945, allocations: 64.08 kB / 0.8701 GB, free: 150.9 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/1.946, allocations: 470.4 kB / 0.8705 GB, free: 150.6 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.524e-05/1.946, allocations: 11.56 kB / 0.8705 GB, free: 150.6 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.482e-05/1.946, allocations: 15.59 kB / 0.8705 GB, free: 150.6 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009558/1.947, allocations: 393.5 kB / 0.8709 GB, free: 150.4 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009976/1.948, allocations: 481.5 kB / 0.8714 GB, free: 150.2 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/1.948, allocations: 7.781 kB / 0.8714 GB, free: 150.2 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/1.948, allocations: 0 / 0.8714 GB, free: 150.2 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.485e-05/1.948, allocations: 26.47 kB / 0.8714 GB, free: 150.2 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/1.953, allocations: 2.173 MB / 0.8735 GB, free: 148.6 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/1.954, allocations: 225.5 kB / 0.8737 GB, free: 148.5 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/1.954, allocations: 128.3 kB / 0.8739 GB, free: 148.4 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/1.956, allocations: 1.026 MB / 0.8749 GB, free: 147.6 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003507/1.956, allocations: 217.8 kB / 0.8751 GB, free: 147.4 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=18): time 2.234e-06/1.956, allocations: 0 / 0.8751 GB, free: 147.4 MB / 0.4952 GB Notification: Performance of matching and sorting (n=18): time 0.001048/1.957, allocations: 285.5 kB / 0.8753 GB, free: 147.3 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/1.957, allocations: 238.8 kB / 0.8756 GB, free: 147 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006225/1.958, allocations: 377.4 kB / 0.8759 GB, free: 146.8 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/1.958, allocations: 25.7 kB / 0.876 GB, free: 146.8 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/1.958, allocations: 342.7 kB / 0.8763 GB, free: 146.5 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 6.931e-05/1.958, allocations: 58.17 kB / 0.8763 GB, free: 146.4 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/1.958, allocations: 2.125 kB / 0.8763 GB, free: 146.4 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.158e-05/1.958, allocations: 321.8 kB / 0.8766 GB, free: 146.1 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/1.959, allocations: 117.4 kB / 0.8768 GB, free: 146.1 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/1.959, allocations: 286 kB / 0.877 GB, free: 145.8 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005145/1.964, allocations: 0.6187 MB / 0.8776 GB, free: 145.7 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/1.964, allocations: 3.969 kB / 0.8776 GB, free: 145.7 MB / 0.4952 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.005978/1.97, allocations: 0.8725 MB / 0.8785 GB, free: 145.5 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003924/1.971, allocations: 1.692 MB / 0.8801 GB, free: 143.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/1.971, allocations: 3.938 kB / 0.8801 GB, free: 143.7 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.157e-05/1.971, allocations: 7.688 kB / 0.8802 GB, free: 143.7 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006013/1.971, allocations: 77.69 kB / 0.8802 GB, free: 143.7 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/1.971, allocations: 15.73 kB / 0.8802 GB, free: 143.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007699/1.972, allocations: 46.88 kB / 0.8803 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.27e-05/1.972, allocations: 26.12 kB / 0.8803 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/1.972, allocations: 3.875 kB / 0.8803 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005701/1.978, allocations: 0.8024 MB / 0.8811 GB, free: 143.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.978, allocations: 3.625 kB / 0.8811 GB, free: 143.4 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/1.978, allocations: 10.56 kB / 0.8811 GB, free: 143.4 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007222/1.979, allocations: 76.69 kB / 0.8812 GB, free: 143.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-05/1.979, allocations: 7.281 kB / 0.8812 GB, free: 143.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/1.98, allocations: 39.12 kB / 0.8812 GB, free: 143.4 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.17e-05/1.98, allocations: 15.56 kB / 0.8812 GB, free: 143.4 MB / 0.4952 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 () * 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.0002618/1.98, allocations: 157.3 kB / 0.8814 GB, free: 143.3 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00105/1.981, allocations: 299.6 kB / 0.8817 GB, free: 143.1 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/1.982, allocations: 42.19 kB / 0.8817 GB, free: 143.1 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/1.983, allocations: 317.2 kB / 0.882 GB, free: 143 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/1.983, allocations: 3.953 kB / 0.882 GB, free: 143 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/1.983, allocations: 0 / 0.882 GB, free: 143 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/1.983, allocations: 2.844 kB / 0.882 GB, free: 143 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005923/1.983, allocations: 368.8 kB / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/1.983, allocations: 3.891 kB / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/1.984, allocations: 26.03 kB / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/1.984, allocations: 0 / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/1.984, allocations: 6.828 kB / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/1.984, allocations: 3.781 kB / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.984, allocations: 0 / 0.8824 GB, free: 142.8 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009311/1.985, allocations: 323.7 kB / 0.8827 GB, free: 142.6 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/1.985, allocations: 135.6 kB / 0.8829 GB, free: 142.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/1.985, allocations: 3.844 kB / 0.8829 GB, free: 142.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004684/1.985, allocations: 14.23 kB / 0.8829 GB, free: 142.5 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.758e-05/1.985, allocations: 15.38 kB / 0.8829 GB, free: 142.5 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/1.986, allocations: 15.25 kB / 0.8829 GB, free: 142.5 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.000449/1.986, allocations: 286.4 kB / 0.8832 GB, free: 142.3 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.51e-07/1.986, allocations: 0 / 0.8832 GB, free: 142.3 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.001894/1.988, allocations: 469.4 kB / 0.8836 GB, free: 142.2 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: 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) * 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.002808/1.991, allocations: 1.266 MB / 0.8849 GB, free: 141.4 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001292/1.992, allocations: 0.6022 MB / 0.8854 GB, free: 141.1 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.992, allocations: 0 / 0.8854 GB, free: 141.1 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0002306/1.992, allocations: 171.9 kB / 0.8856 GB, free: 141 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/1.994, allocations: 149.6 kB / 0.8858 GB, free: 140.9 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/1.996, allocations: 0.7726 MB / 0.8865 GB, free: 140.5 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/1.996, allocations: 0.8472 MB / 0.8873 GB, free: 139.8 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/1.997, allocations: 155.4 kB / 0.8875 GB, free: 139.7 MB / 0.4952 GB Notification: Performance of SimCode: time 1.092e-06/1.997, allocations: 0 / 0.8875 GB, free: 139.7 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.85/4.847, allocations: 12.05 MB / 0.8993 GB, free: 134.6 MB / 0.4952 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