Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort.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.Fittings.TestMultiPort,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPort",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.002282/0.002282, 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.449/2.449, 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.001147/0.001147, allocations: 85.64 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.3003/0.3003, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.372e-05/2.386e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4535/0.4535, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.04/11.49, allocations: 3.603 GB / 4.069 GB, free: 141 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/11.49, allocations: 79.83 kB / 4.069 GB, free: 141 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.419/13.91, allocations: 468.7 MB / 4.527 GB, free: 62.45 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.874e-06/13.91, allocations: 0 / 4.527 GB, free: 62.45 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0001116/13.91, allocations: 26.88 kB / 4.527 GB, free: 62.44 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.009442/13.92, allocations: 1.948 MB / 4.529 GB, free: 61.39 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/13.92, allocations: 9.406 kB / 4.529 GB, free: 61.39 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/13.92, allocations: 121.6 kB / 4.529 GB, free: 61.33 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/13.92, allocations: 0.7395 MB / 4.53 GB, free: 61.04 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.009e-05/13.92, allocations: 23.5 kB / 4.53 GB, free: 61.04 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003969/13.92, allocations: 43.06 kB / 4.53 GB, free: 61.04 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00352/13.93, allocations: 1.215 MB / 4.531 GB, free: 61.04 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003318/13.93, allocations: 1.103 MB / 4.532 GB, free: 60.94 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/13.93, allocations: 3.156 kB / 4.532 GB, free: 60.94 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/13.93, allocations: 5.844 kB / 4.532 GB, free: 60.94 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/13.93, allocations: 77.44 kB / 4.532 GB, free: 60.93 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01315/13.94, allocations: 4.551 MB / 4.537 GB, free: 59.12 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/13.95, allocations: 0.7674 MB / 4.537 GB, free: 58.9 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007821/13.95, allocations: 359.3 kB / 4.538 GB, free: 58.77 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008247/13.95, allocations: 0.738 MB / 4.538 GB, free: 58 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/13.95, allocations: 41.81 kB / 4.538 GB, free: 57.95 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=53): time 3.276e-06/13.95, allocations: 0 / 4.538 GB, free: 57.95 MB / 0.4952 GB Notification: Performance of matching and sorting (n=53): time 0.003947/13.95, allocations: 0.8785 MB / 4.539 GB, free: 57.66 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/13.95, allocations: 111.1 kB / 4.539 GB, free: 57.53 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/13.95, allocations: 0.6058 MB / 4.54 GB, free: 57.24 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0001973/13.95, allocations: 31.92 kB / 4.54 GB, free: 57.21 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/13.95, allocations: 491.8 kB / 4.54 GB, free: 56.79 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/13.95, allocations: 189.6 kB / 4.541 GB, free: 56.64 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.46e-05/13.95, allocations: 0 / 4.541 GB, free: 56.64 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 9.441e-05/13.95, allocations: 341.6 kB / 4.541 GB, free: 56.32 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009669/13.96, allocations: 423.7 kB / 4.541 GB, free: 56.16 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/13.96, allocations: 0.5312 MB / 4.542 GB, free: 55.88 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0122/13.97, allocations: 1.53 MB / 4.543 GB, free: 55.59 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/13.97, allocations: 0 / 4.543 GB, free: 55.59 MB / 0.4952 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01407/13.98, allocations: 2.103 MB / 4.545 GB, free: 55.1 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002483/13.98, allocations: 0.9638 MB / 4.546 GB, free: 54.09 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/13.98, allocations: 7.594 kB / 4.546 GB, free: 54.08 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.197e-05/13.98, allocations: 7.188 kB / 4.546 GB, free: 54.08 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/13.99, allocations: 208.3 kB / 4.547 GB, free: 54.06 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.029e-05/13.99, allocations: 11.14 kB / 4.547 GB, free: 54.06 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/13.99, allocations: 94.17 kB / 4.547 GB, free: 54.02 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/13.99, allocations: 57.14 kB / 4.547 GB, free: 54.02 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/13.99, allocations: 5.531 kB / 4.547 GB, free: 54.02 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01335/14, allocations: 1.966 MB / 4.549 GB, free: 53.59 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/14, allocations: 0.875 kB / 4.549 GB, free: 53.59 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/14, allocations: 8.344 kB / 4.549 GB, free: 53.59 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/14, allocations: 202.5 kB / 4.549 GB, free: 53.58 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/14, allocations: 9.312 kB / 4.549 GB, free: 53.58 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/14, allocations: 73.94 kB / 4.549 GB, free: 53.55 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/14, allocations: 58.77 kB / 4.549 GB, free: 53.54 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 99 * 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.0003651/14, allocations: 120.5 kB / 4.549 GB, free: 53.42 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003738/14.01, allocations: 0.862 MB / 4.55 GB, free: 53.13 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002924/14.01, allocations: 78.06 kB / 4.55 GB, free: 53.09 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003933/14.01, allocations: 1.087 MB / 4.551 GB, free: 52.67 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/14.01, allocations: 11.55 kB / 4.551 GB, free: 52.67 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/14.01, allocations: 4 kB / 4.551 GB, free: 52.67 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/14.01, allocations: 0 / 4.551 GB, free: 52.67 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005021/14.02, allocations: 1.734 MB / 4.553 GB, free: 51.87 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/14.02, allocations: 3.938 kB / 4.553 GB, free: 51.87 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/14.02, allocations: 113.8 kB / 4.553 GB, free: 51.86 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.576e-05/14.02, allocations: 2.344 kB / 4.553 GB, free: 51.86 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-05/14.02, allocations: 14.09 kB / 4.553 GB, free: 51.86 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.729e-06/14.02, allocations: 7.188 kB / 4.553 GB, free: 51.86 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/14.02, allocations: 13.06 kB / 4.553 GB, free: 51.85 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003257/14.02, allocations: 0.9813 MB / 4.554 GB, free: 51.28 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004993/14.02, allocations: 209.9 kB / 4.554 GB, free: 51.11 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/14.02, allocations: 3.875 kB / 4.554 GB, free: 51.11 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/14.02, allocations: 44.7 kB / 4.554 GB, free: 51.11 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/14.02, allocations: 36.14 kB / 4.554 GB, free: 51.11 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/14.02, allocations: 49.03 kB / 4.554 GB, free: 51.1 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.001051/14.03, allocations: 0.5225 MB / 4.555 GB, free: 50.85 MB / 0.4952 GB Notification: Performance of sort global known variables: time 5.21e-07/14.03, allocations: 3.094 kB / 4.555 GB, free: 50.85 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005478/14.03, allocations: 1.328 MB / 4.556 GB, free: 50.46 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 56 * 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 Backend phase and start with SimCode phase: time 0.01055/14.04, allocations: 4.126 MB / 4.56 GB, free: 47.18 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.003458/14.05, allocations: 1.377 MB / 4.561 GB, free: 45.96 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/14.05, allocations: 4 kB / 4.561 GB, free: 45.96 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0007809/14.05, allocations: 327 kB / 4.562 GB, free: 45.67 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003052/14.05, allocations: 320.5 kB / 4.562 GB, free: 45.44 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006373/14.06, allocations: 1.834 MB / 4.564 GB, free: 43.76 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/14.06, allocations: 1.076 MB / 4.565 GB, free: 42.8 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/14.06, allocations: 372 kB / 4.565 GB, free: 42.48 MB / 0.4952 GB Notification: Performance of SimCode: time 1.282e-06/14.06, allocations: 1.781 kB / 4.565 GB, free: 42.48 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.517/17.57, allocations: 34.65 MB / 4.599 GB, free: 9.309 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPort_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPort.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPort_res.mat does not exist to compare? outputFormat=mat