Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001262, allocations: 114 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001692/0.001692, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 76.59 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1098, allocations: 62.43 MB / 479.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4011/0.5109, allocations: 182.6 MB / 0.6466 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.513, allocations: 0.9067 MB / 0.6475 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004858/0.5136, allocations: 11.94 kB / 0.6475 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007837/0.5144, allocations: 183 kB / 0.6477 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007663/0.5152, allocations: 266.6 kB / 0.648 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005049/0.5203, allocations: 1.747 MB / 0.6497 GB, free: 9.863 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.5215, allocations: 0.9749 MB / 0.6506 GB, free: 8.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000569/0.5221, allocations: 326.2 kB / 0.6509 GB, free: 8.574 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003691/0.5258, allocations: 1.542 MB / 0.6524 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006382/0.5264, allocations: 330.9 kB / 0.6528 GB, free: 6.703 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.5266, allocations: 48 kB / 0.6528 GB, free: 6.656 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004814/0.5314, allocations: 2.835 MB / 0.6556 GB, free: 3.816 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003277/0.5318, allocations: 195.5 kB / 0.6558 GB, free: 3.625 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004611/0.5322, allocations: 270.9 kB / 0.656 GB, free: 3.359 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004285/0.5365, allocations: 2.101 MB / 0.6581 GB, free: 1.254 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5366, allocations: 0 / 0.6581 GB, free: 1.254 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5366, allocations: 0 / 0.6581 GB, free: 1.254 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.229e-05/0.5366, allocations: 0 / 0.6581 GB, free: 1.254 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002212/0.5388, allocations: 1.052 MB / 0.6591 GB, free: 144 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.5389, allocations: 8.031 kB / 0.6591 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.539, allocations: 78.53 kB / 0.6592 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003149/0.5394, allocations: 59.59 kB / 0.6592 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005448/0.5399, allocations: 373.9 kB / 0.6596 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.54, allocations: 40.88 kB / 0.6596 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.879e-05/0.54, allocations: 36 kB / 0.6597 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009274/0.541, allocations: 0.5081 MB / 0.6602 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.541, allocations: 3.938 kB / 0.6602 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.599e-05/0.541, allocations: 16 kB / 0.6602 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.5411, allocations: 16 kB / 0.6602 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000874/0.5419, allocations: 495.3 kB / 0.6607 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002734/0.5447, allocations: 1.974 MB / 0.6626 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007069/0.5454, allocations: 471 kB / 0.663 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.5457, allocations: 181.6 kB / 0.6632 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007477/0.5465, allocations: 0.9493 MB / 0.6641 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.5465, allocations: 42.56 kB / 0.6642 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 2.014e-06/0.5465, allocations: 0 / 0.6642 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001114/0.5477, allocations: 496.8 kB / 0.6647 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.5477, allocations: 110.8 kB / 0.6648 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/0.5481, allocations: 397.6 kB / 0.6651 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.5482, allocations: 37.7 kB / 0.6652 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.5483, allocations: 216.2 kB / 0.6654 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.712e-05/0.5484, allocations: 106.5 kB / 0.6655 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.5486, allocations: 74.06 kB / 0.6656 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5487, allocations: 354.7 kB / 0.6659 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.549, allocations: 144.7 kB / 0.666 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.5494, allocations: 263.2 kB / 0.6663 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006811/0.5501, allocations: 487.6 kB / 0.6667 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5501, allocations: 0 / 0.6667 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000965/0.5511, allocations: 0.547 MB / 0.6673 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.112e-05/0.5511, allocations: 63.39 kB / 0.6673 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.5511, allocations: 4 kB / 0.6673 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.5512, allocations: 8 kB / 0.6674 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.5516, allocations: 79.89 kB / 0.6674 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.5516, allocations: 12.31 kB / 0.6674 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.552, allocations: 59.48 kB / 0.6675 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-05/0.552, allocations: 27.98 kB / 0.6675 GB, free: 6.82 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002148/0.5522, allocations: 181.7 kB / 0.6677 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.5524, allocations: 43.53 kB / 0.6677 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.5534, allocations: 495.4 kB / 0.6682 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.5534, allocations: 11.94 kB / 0.6682 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5534, allocations: 0 / 0.6682 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5535, allocations: 3.938 kB / 0.6682 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.5563, allocations: 2.433 MB / 0.6706 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5564, allocations: 0 / 0.6706 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.5567, allocations: 59.91 kB / 0.6707 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.5567, allocations: 7.938 kB / 0.6707 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.5567, allocations: 11.98 kB / 0.6707 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.5567, allocations: 7.938 kB / 0.6707 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5567, allocations: 4.188 kB / 0.6707 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007789/0.5575, allocations: 0.6448 MB / 0.6713 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.5576, allocations: 124.5 kB / 0.6714 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.573e-05/0.5577, allocations: 15.91 kB / 0.6715 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000476/0.5582, allocations: 27.91 kB / 0.6715 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.962e-05/0.5583, allocations: 27.97 kB / 0.6715 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.656e-05/0.5583, allocations: 19.98 kB / 0.6715 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003729/0.5587, allocations: 363.1 kB / 0.6719 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5587, allocations: 0 / 0.6719 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001089/0.5598, allocations: 339.8 kB / 0.6722 GB, free: 1.617 MB / 0.4981 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00221/0.562, allocations: 1.585 MB / 0.6737 GB, free: 0 / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008456/0.5629, allocations: 483.1 kB / 0.6742 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.5629, allocations: 3.938 kB / 0.6742 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.5632, allocations: 164 kB / 0.6744 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.5647, allocations: 284.6 kB / 0.6746 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006221/0.5709, allocations: 4.775 MB / 0.6793 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.5714, allocations: 0.8425 MB / 0.6801 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004861/0.5719, allocations: 111.5 kB / 0.6802 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/0.5721, allocations: 151.4 kB / 0.6804 GB, free: 8.949 MB / 0.5137 GB Notification: Performance of SimCode: time 4.51e-07/0.5721, allocations: 4 kB / 0.6804 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06336/0.6355, allocations: 19.37 MB / 0.6993 GB, free: 5.836 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002237/0.6357, allocations: 268.5 kB / 0.6995 GB, free: 5.477 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.443/3.079, allocations: 0 / 0.6995 GB, free: 5.477 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches