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.002405/0.002413, allocations: 188.6 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.063/2.063, 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.001158/0.001157, allocations: 102.8 kB / 270.9 MB, free: 13.37 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.2966/0.2966, allocations: 43.55 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006772/0.0006773, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1328, allocations: 58.86 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 1.239/1.371, allocations: 243.1 MB / 0.7162 GB, free: 4.621 MB / 0.4949 GB Notification: Performance of NFInst.instExpressions: time 0.05484/1.426, allocations: 23.68 MB / 0.7394 GB, free: 4.379 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002823/1.429, allocations: 63.25 kB / 0.7394 GB, free: 4.379 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.003966/1.433, allocations: 0.8297 MB / 0.7402 GB, free: 4.375 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.02352/1.457, allocations: 5.22 MB / 0.7453 GB, free: 4.293 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.02757/1.484, allocations: 6.553 MB / 0.7517 GB, free: 4.18 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.007372/1.492, allocations: 3.129 MB / 0.7548 GB, free: 4.172 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004146/1.496, allocations: 1.58 MB / 0.7563 GB, free: 20.01 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01694/1.513, allocations: 4.789 MB / 0.761 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005566/1.519, allocations: 1.817 MB / 0.7628 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001269/1.52, allocations: 129.7 kB / 0.7629 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04033/1.56, allocations: 14.49 MB / 0.7771 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002565/1.563, allocations: 0.9107 MB / 0.7779 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002053/1.565, allocations: 0.4973 MB / 0.7784 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0248/1.59, allocations: 7.585 MB / 0.7858 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.59, allocations: 1.125 kB / 0.7858 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.657e-06/1.59, allocations: 0 / 0.7858 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001605/1.59, allocations: 0 / 0.7858 GB, free: 11.19 MB / 0.5105 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.01808/1.608, allocations: 4.131 MB / 0.7899 GB, free: 7.223 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/1.608, allocations: 12.03 kB / 0.7899 GB, free: 7.211 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001518/1.61, allocations: 279.1 kB / 0.7902 GB, free: 7.047 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001954/1.612, allocations: 278.2 kB / 0.7904 GB, free: 6.773 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004657/1.616, allocations: 1.313 MB / 0.7917 GB, free: 5.77 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000277/1.617, allocations: 138.6 kB / 0.7918 GB, free: 5.691 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/1.618, allocations: 183.8 kB / 0.792 GB, free: 5.57 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/1.628, allocations: 2.999 MB / 0.7949 GB, free: 3.434 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.479e-05/1.629, allocations: 0 / 0.7949 GB, free: 3.434 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005647/1.629, allocations: 82.33 kB / 0.795 GB, free: 3.41 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003708/1.63, allocations: 168.8 kB / 0.7952 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01121/1.641, allocations: 3.291 MB / 0.7984 GB, free: 1.008 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03604/1.677, allocations: 11.46 MB / 0.8096 GB, free: 7.512 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008647/1.686, allocations: 2.408 MB / 0.8119 GB, free: 5.879 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004571/1.69, allocations: 3.406 MB / 0.8153 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.667e-05/1.69, allocations: 57.78 kB / 0.8153 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002305/1.693, allocations: 264.4 kB / 0.8156 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=156): time 1.247e-05/1.693, allocations: 0 / 0.8156 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156): time 0.0149/1.708, allocations: 3.618 MB / 0.8191 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002073/1.708, allocations: 201.2 kB / 0.8193 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006828/1.715, allocations: 1.892 MB / 0.8211 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008814/1.716, allocations: 60.33 kB / 0.8212 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001632/1.717, allocations: 0.8361 MB / 0.822 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001696/1.719, allocations: 0.5334 MB / 0.8225 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008111/1.72, allocations: 42 kB / 0.8226 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0005324/1.721, allocations: 387.8 kB / 0.8229 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005967/1.727, allocations: 1.087 MB / 0.824 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004586/1.731, allocations: 1.508 MB / 0.8255 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004467/1.736, allocations: 1.429 MB / 0.8269 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.591e-05/1.736, allocations: 4 kB / 0.8269 GB, free: 8.914 MB / 0.5417 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.01155/1.747, allocations: 3.237 MB / 0.83 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0021/1.75, allocations: 4.324 MB / 0.8343 GB, free: 2.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.578e-05/1.75, allocations: 12 kB / 0.8343 GB, free: 2.059 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006527/1.756, allocations: 0.7484 MB / 0.835 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004345/1.761, allocations: 465.3 kB / 0.8354 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002962/1.764, allocations: 1.646 MB / 0.837 GB, free: 15.49 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004145/1.768, allocations: 138 kB / 0.8372 GB, free: 15.39 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009317/1.769, allocations: 161.4 kB / 0.8373 GB, free: 15.25 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/1.769, allocations: 0 / 0.8373 GB, free: 15.25 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01046/1.779, allocations: 3.029 MB / 0.8403 GB, free: 13.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.034e-05/1.779, allocations: 9.969 kB / 0.8403 GB, free: 13.15 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002353/1.782, allocations: 359.3 kB / 0.8406 GB, free: 12.84 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004817/1.787, allocations: 0.4903 MB / 0.8411 GB, free: 12.39 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/1.789, allocations: 1.332 MB / 0.8424 GB, free: 11.11 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003036/1.792, allocations: 125 kB / 0.8425 GB, free: 11.02 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008743/1.793, allocations: 148.9 kB / 0.8427 GB, free: 10.89 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (239): * Single equations (assignments): 232 * 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.002248/1.795, allocations: 0.619 MB / 0.8433 GB, free: 10.46 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007916/1.796, allocations: 213.5 kB / 0.8435 GB, free: 10.25 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01382/1.809, allocations: 3.787 MB / 0.8472 GB, free: 7.539 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.101e-05/1.81, allocations: 27.98 kB / 0.8472 GB, free: 7.512 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/1.81, allocations: 0 / 0.8472 GB, free: 7.512 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.354e-05/1.81, allocations: 7.969 kB / 0.8472 GB, free: 7.504 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/1.827, allocations: 5.584 MB / 0.8527 GB, free: 3.5 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.329e-05/1.827, allocations: 8 kB / 0.8527 GB, free: 3.492 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002963/1.83, allocations: 317.5 kB / 0.853 GB, free: 3.211 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005767/1.836, allocations: 0.6796 MB / 0.8537 GB, free: 2.605 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005974/1.837, allocations: 67 kB / 0.8537 GB, free: 2.566 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/1.839, allocations: 1.639 MB / 0.8553 GB, free: 1.086 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.206e-05/1.839, allocations: 13.36 kB / 0.8553 GB, free: 1.078 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009352/1.849, allocations: 3.239 MB / 0.8585 GB, free: 14.38 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/1.85, allocations: 364.9 kB / 0.8588 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001021/1.851, allocations: 35.38 kB / 0.8589 GB, free: 14.04 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003777/1.855, allocations: 121.1 kB / 0.859 GB, free: 13.94 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007791/1.856, allocations: 139 kB / 0.8591 GB, free: 13.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005598/1.856, allocations: 132.2 kB / 0.8592 GB, free: 13.71 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003549/1.86, allocations: 1.385 MB / 0.8606 GB, free: 12.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.82e-07/1.86, allocations: 0 / 0.8606 GB, free: 12.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01248/1.872, allocations: 2.707 MB / 0.8632 GB, free: 10.19 MB / 0.573 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.02189/1.894, allocations: 7.478 MB / 0.8705 GB, free: 3.594 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01459/1.909, allocations: 4.598 MB / 0.875 GB, free: 128 kB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.036e-05/1.909, allocations: 5.328 kB / 0.875 GB, free: 120 kB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0041/1.913, allocations: 1.222 MB / 0.8762 GB, free: 15.28 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/1.924, allocations: 1.221 MB / 0.8774 GB, free: 14.25 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02451/1.948, allocations: 14.41 MB / 0.8915 GB, free: 172 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/1.951, allocations: 1.653 MB / 0.8931 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003321/1.954, allocations: 0.9307 MB / 0.894 GB, free: 14.23 MB / 0.6042 GB Notification: Performance of SimCode: time 1.303e-06/1.954, allocations: 0 / 0.894 GB, free: 14.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.232/7.186, allocations: 91.09 MB / 0.983 GB, free: 286.9 MB / 0.6355 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