Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.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.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",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.002354/0.002354, allocations: 186 kB / 16.4 MB, free: 5.699 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.083/2.083, 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.001162/0.001161, allocations: 91.39 kB / 270.9 MB, free: 8.375 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.5211/0.5211, allocations: 43.56 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004671/0.0004672, allocations: 15.98 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1385, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.77/11.91, allocations: 3.613 GB / 4.091 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/11.91, allocations: 87.81 kB / 4.091 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.277/21.18, allocations: 1.444 GB / 5.535 GB, free: 32.31 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.436e-06/21.18, allocations: 0 / 5.535 GB, free: 32.31 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0004648/21.18, allocations: 59.36 kB / 5.535 GB, free: 32.31 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.05624/21.24, allocations: 7.337 MB / 5.542 GB, free: 28.81 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 7.181e-05/21.24, allocations: 12.84 kB / 5.542 GB, free: 28.81 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002557/21.24, allocations: 274.7 kB / 5.543 GB, free: 28.76 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003793/21.25, allocations: 279.1 kB / 5.543 GB, free: 28.64 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008955/21.26, allocations: 1.447 MB / 5.544 GB, free: 28.25 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004252/21.26, allocations: 138.1 kB / 5.545 GB, free: 28.24 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/21.26, allocations: 183.5 kB / 5.545 GB, free: 28.24 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01911/21.28, allocations: 2.998 MB / 5.548 GB, free: 27.95 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001685/21.28, allocations: 3.469 kB / 5.548 GB, free: 27.95 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001701/21.28, allocations: 80.22 kB / 5.548 GB, free: 27.95 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007356/21.28, allocations: 164.5 kB / 5.548 GB, free: 27.95 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/21.29, allocations: 3.252 MB / 5.551 GB, free: 27.93 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03775/21.33, allocations: 11.24 MB / 5.562 GB, free: 23.52 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009292/21.34, allocations: 2.341 MB / 5.564 GB, free: 23.48 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003823/21.35, allocations: 3.4 MB / 5.568 GB, free: 19.92 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/21.35, allocations: 59.12 kB / 5.568 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002831/21.35, allocations: 270.5 kB / 5.568 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=156): time 1.122e-05/21.35, allocations: 1.844 kB / 5.568 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156): time 0.01455/21.36, allocations: 3.512 MB / 5.571 GB, free: 19.39 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/21.36, allocations: 203.9 kB / 5.572 GB, free: 19.17 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004535/21.37, allocations: 1.689 MB / 5.573 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0007927/21.37, allocations: 67.81 kB / 5.573 GB, free: 18.91 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001021/21.37, allocations: 0.8243 MB / 5.574 GB, free: 18.51 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001118/21.37, allocations: 0.5369 MB / 5.575 GB, free: 18.16 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004353/21.37, allocations: 39.72 kB / 5.575 GB, free: 18.16 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002303/21.37, allocations: 386.4 kB / 5.575 GB, free: 17.85 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003732/21.38, allocations: 1.053 MB / 5.576 GB, free: 17.85 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004298/21.38, allocations: 1.447 MB / 5.577 GB, free: 17.44 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004327/21.38, allocations: 1.386 MB / 5.579 GB, free: 17.26 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.682e-05/21.38, allocations: 3.625 kB / 5.579 GB, free: 17.26 MB / 0.5886 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01122/21.4, allocations: 3.143 MB / 5.582 GB, free: 16.97 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001027/21.4, allocations: 3.972 MB / 5.586 GB, free: 12.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.533e-05/21.4, allocations: 13.75 kB / 5.586 GB, free: 12.83 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006459/21.4, allocations: 0.731 MB / 5.586 GB, free: 12.81 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004388/21.41, allocations: 459.8 kB / 5.587 GB, free: 12.81 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/21.41, allocations: 1.635 MB / 5.589 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004771/21.42, allocations: 151 kB / 5.589 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/21.42, allocations: 151.1 kB / 5.589 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/21.42, allocations: 4.938 kB / 5.589 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01047/21.43, allocations: 2.933 MB / 5.592 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.878e-05/21.43, allocations: 15.5 kB / 5.592 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002465/21.43, allocations: 355.8 kB / 5.592 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004877/21.43, allocations: 0.4993 MB / 5.593 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/21.44, allocations: 1.319 MB / 5.594 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/21.44, allocations: 136.1 kB / 5.594 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007644/21.44, allocations: 148.5 kB / 5.594 GB, free: 10.47 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.002413/21.44, allocations: 0.6105 MB / 5.595 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008757/21.44, allocations: 214.3 kB / 5.595 GB, free: 10.17 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/21.46, allocations: 3.727 MB / 5.599 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/21.46, allocations: 15.53 kB / 5.599 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/21.46, allocations: 1.438 kB / 5.599 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.332e-05/21.46, allocations: 14.19 kB / 5.599 GB, free: 9.906 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/21.48, allocations: 5.547 MB / 5.604 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/21.48, allocations: 9.547 kB / 5.604 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002937/21.48, allocations: 320.1 kB / 5.604 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005724/21.49, allocations: 0.6744 MB / 5.605 GB, free: 9.254 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006217/21.49, allocations: 67.17 kB / 5.605 GB, free: 9.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002679/21.49, allocations: 1.628 MB / 5.607 GB, free: 24.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/21.49, allocations: 6.656 kB / 5.607 GB, free: 24.21 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00907/21.5, allocations: 3.189 MB / 5.61 GB, free: 23.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/21.5, allocations: 352.1 kB / 5.61 GB, free: 22.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/21.5, allocations: 39.34 kB / 5.61 GB, free: 22.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003748/21.5, allocations: 125.6 kB / 5.61 GB, free: 22.95 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006964/21.5, allocations: 141.8 kB / 5.61 GB, free: 22.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005026/21.51, allocations: 135 kB / 5.61 GB, free: 22.95 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.003495/21.51, allocations: 1.392 MB / 5.612 GB, free: 22.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.62e-07/21.51, allocations: 0 / 5.612 GB, free: 22.8 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01561/21.52, allocations: 3.102 MB / 5.615 GB, free: 22.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (165): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.02664/21.55, allocations: 9.125 MB / 5.624 GB, free: 18.48 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01362/21.56, allocations: 4.476 MB / 5.628 GB, free: 17.82 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.768e-05/21.56, allocations: 4.328 kB / 5.628 GB, free: 17.82 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003995/21.57, allocations: 1.197 MB / 5.629 GB, free: 17.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01103/21.58, allocations: 1.206 MB / 5.63 GB, free: 17.76 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02416/21.6, allocations: 13.96 MB / 5.644 GB, free: 7.465 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002037/21.61, allocations: 1.652 MB / 5.646 GB, free: 6.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003101/21.61, allocations: 0.9268 MB / 5.647 GB, free: 6.723 MB / 0.6042 GB Notification: Performance of SimCode: time 1.062e-06/21.61, allocations: 3.844 kB / 5.647 GB, free: 6.723 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.646/27.25, allocations: 97.28 MB / 5.742 GB, free: 57.19 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat