Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 97 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009836/0.0009837, allocations: 178.8 kB / 17.88 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2064/0.2064, allocations: 44.23 MB / 337.1 MB, free: 2.887 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003091, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.5421/0.6696, allocations: 243.1 MB / 0.6979 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.3812/1.051, allocations: 18.27 MB / 0.7158 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00328/1.054, allocations: 64.09 kB / 0.7158 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003493/1.058, allocations: 0.8236 MB / 0.7166 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01448/1.072, allocations: 4.591 MB / 0.7211 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01641/1.089, allocations: 6.11 MB / 0.7271 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005746/1.094, allocations: 3.132 MB / 0.7301 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002874/1.097, allocations: 1.574 MB / 0.7317 GB, free: 21.28 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01117/1.108, allocations: 4.798 MB / 0.7363 GB, free: 21.21 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004937/1.113, allocations: 1.82 MB / 0.7381 GB, free: 21.21 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001024/1.114, allocations: 127.6 kB / 0.7382 GB, free: 21.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02551/1.14, allocations: 13.69 MB / 0.7516 GB, free: 20.49 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.002513/1.143, allocations: 0.9133 MB / 0.7525 GB, free: 20.23 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001637/1.144, allocations: 0.5028 MB / 0.753 GB, free: 20.2 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01667/1.161, allocations: 7.177 MB / 0.76 GB, free: 17.23 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/1.161, allocations: 0 / 0.76 GB, free: 17.23 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.834e-06/1.161, allocations: 0 / 0.76 GB, free: 17.23 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.082e-05/1.161, allocations: 0 / 0.76 GB, free: 17.23 MB / 0.545 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.01046/1.171, allocations: 3.949 MB / 0.7639 GB, free: 14.7 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/1.172, allocations: 9.125 kB / 0.7639 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001496/1.173, allocations: 277.4 kB / 0.7641 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002134/1.175, allocations: 282.7 kB / 0.7644 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004306/1.179, allocations: 1.3 MB / 0.7657 GB, free: 13.87 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001603/1.18, allocations: 152.4 kB / 0.7658 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003486/1.18, allocations: 174.1 kB / 0.766 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005608/1.186, allocations: 2.971 MB / 0.7689 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.717e-05/1.186, allocations: 3.516 kB / 0.7689 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002506/1.186, allocations: 79.02 kB / 0.769 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002137/1.186, allocations: 166 kB / 0.7691 GB, free: 12.99 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005986/1.192, allocations: 3.267 MB / 0.7723 GB, free: 12.43 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02316/1.215, allocations: 11.5 MB / 0.7836 GB, free: 5.922 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005666/1.221, allocations: 2.382 MB / 0.7859 GB, free: 4.594 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003937/1.225, allocations: 3.404 MB / 0.7892 GB, free: 0.5586 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.025e-05/1.225, allocations: 56.22 kB / 0.7893 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002257/1.227, allocations: 256.2 kB / 0.7895 GB, free: 300 kB / 0.545 GB Notification: Performance of pre-optimization done (n=155): time 4.98e-06/1.227, allocations: 0 / 0.7895 GB, free: 300 kB / 0.545 GB Notification: Performance of matching and sorting (n=155): time 0.01053/1.238, allocations: 3.572 MB / 0.793 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.238, allocations: 199.7 kB / 0.7932 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/1.241, allocations: 1.901 MB / 0.795 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003113/1.241, allocations: 62.58 kB / 0.7951 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006705/1.242, allocations: 0.9103 MB / 0.796 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006742/1.243, allocations: 0.5298 MB / 0.7965 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/1.243, allocations: 44.12 kB / 0.7965 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002266/1.243, allocations: 386 kB / 0.7969 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002615/1.246, allocations: 1.073 MB / 0.798 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003086/1.249, allocations: 1.495 MB / 0.7994 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003157/1.252, allocations: 1.427 MB / 0.8008 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.905e-05/1.252, allocations: 4 kB / 0.8008 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.009319/1.261, allocations: 3.321 MB / 0.8041 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.003217/1.265, allocations: 4.478 MB / 0.8084 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.764e-05/1.265, allocations: 8 kB / 0.8084 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005447/1.27, allocations: 0.7037 MB / 0.8091 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003422/1.274, allocations: 449 kB / 0.8096 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002617/1.276, allocations: 1.639 MB / 0.8112 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/1.28, allocations: 147.5 kB / 0.8113 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/1.281, allocations: 126 kB / 0.8114 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/1.281, allocations: 4 kB / 0.8114 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009686/1.291, allocations: 2.997 MB / 0.8143 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-05/1.291, allocations: 8 kB / 0.8144 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001915/1.293, allocations: 308.3 kB / 0.8146 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003452/1.297, allocations: 489.2 kB / 0.8151 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/1.298, allocations: 1.33 MB / 0.8164 GB, free: 9.789 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003597/1.302, allocations: 122.9 kB / 0.8165 GB, free: 9.699 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008479/1.303, allocations: 130.3 kB / 0.8167 GB, free: 9.59 MB / 0.5762 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.002531/1.305, allocations: 0.6013 MB / 0.8172 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/1.306, allocations: 217.4 kB / 0.8175 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00788/1.314, allocations: 3.902 MB / 0.8213 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-05/1.314, allocations: 16 kB / 0.8213 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/1.314, allocations: 0 / 0.8213 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.512e-05/1.314, allocations: 7.969 kB / 0.8213 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/1.327, allocations: 5.837 MB / 0.827 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/1.327, allocations: 8 kB / 0.827 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/1.328, allocations: 300 kB / 0.8273 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003313/1.331, allocations: 0.6535 MB / 0.8279 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002277/1.332, allocations: 54.47 kB / 0.828 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00153/1.333, allocations: 1.633 MB / 0.8296 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/1.333, allocations: 10.53 kB / 0.8296 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005237/1.339, allocations: 3.223 MB / 0.8327 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/1.34, allocations: 371.4 kB / 0.8331 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006441/1.34, allocations: 32.69 kB / 0.8331 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/1.342, allocations: 126.4 kB / 0.8332 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003035/1.343, allocations: 133.4 kB / 0.8334 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003309/1.343, allocations: 107.3 kB / 0.8335 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002537/1.346, allocations: 1.416 MB / 0.8348 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.463e-06/1.346, allocations: 0 / 0.8348 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00901/1.355, allocations: 2.509 MB / 0.8373 GB, free: 8.703 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (161): * Single equations (assignments): 158 * 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.01482/1.369, allocations: 7.243 MB / 0.8444 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009981/1.379, allocations: 4.538 MB / 0.8488 GB, free: 14.86 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.876e-05/1.38, allocations: 5.328 kB / 0.8488 GB, free: 14.85 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002451/1.382, allocations: 1.174 MB / 0.8499 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006951/1.389, allocations: 1.21 MB / 0.8511 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/1.408, allocations: 14.18 MB / 0.865 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/1.41, allocations: 1.66 MB / 0.8666 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005661/1.416, allocations: 1.293 MB / 0.8679 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/1.418, allocations: 0.862 MB / 0.8687 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of SimCode: time 1.082e-06/1.418, allocations: 0 / 0.8687 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3846/1.802, allocations: 99.99 MB / 0.9664 GB, free: 355 MB / 0.7012 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/1.802, allocations: 265.7 kB / 0.9666 GB, free: 354.6 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.461/7.264, allocations: 0 / 0.9666 GB, free: 354.6 MB / 0.7012 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat