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.001768/0.001768, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002218/0.002218, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 46.11 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.00156, allocations: 79.12 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1274, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4076/0.5351, allocations: 184.7 MB / 0.6492 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.537, allocations: 0.8938 MB / 0.6501 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.5374, allocations: 11.94 kB / 0.6501 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006262/0.538, allocations: 210.7 kB / 0.6503 GB, free: 9.336 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005874/0.5386, allocations: 274.3 kB / 0.6506 GB, free: 9.066 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004613/0.5433, allocations: 1.921 MB / 0.6524 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.5443, allocations: 0.9749 MB / 0.6534 GB, free: 6.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005082/0.5448, allocations: 335.5 kB / 0.6537 GB, free: 5.844 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.5484, allocations: 1.562 MB / 0.6552 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000558/0.549, allocations: 326.8 kB / 0.6556 GB, free: 3.957 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.5492, allocations: 44 kB / 0.6556 GB, free: 3.914 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004629/0.5538, allocations: 2.734 MB / 0.6583 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002601/0.5541, allocations: 199.5 kB / 0.6585 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000389/0.5545, allocations: 270.8 kB / 0.6587 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003538/0.558, allocations: 2.05 MB / 0.6607 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5581, allocations: 0 / 0.6607 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5581, allocations: 0 / 0.6607 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.616e-05/0.5581, allocations: 4 kB / 0.6607 GB, free: 14.66 MB / 0.4981 GB 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.002286/0.5604, allocations: 1.04 MB / 0.6617 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.5604, allocations: 8.031 kB / 0.6617 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.5606, allocations: 86.45 kB / 0.6618 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.5609, allocations: 55.44 kB / 0.6619 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.5614, allocations: 365.9 kB / 0.6622 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.5614, allocations: 32.94 kB / 0.6623 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.5615, allocations: 36 kB / 0.6623 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008735/0.5624, allocations: 0.5197 MB / 0.6628 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.5624, allocations: 0 / 0.6628 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.01e-05/0.5625, allocations: 16 kB / 0.6628 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.5625, allocations: 12 kB / 0.6628 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008674/0.5634, allocations: 499.3 kB / 0.6633 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.566, allocations: 1.978 MB / 0.6652 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006863/0.5667, allocations: 456.7 kB / 0.6657 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/0.567, allocations: 182.5 kB / 0.6658 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007533/0.5678, allocations: 0.9494 MB / 0.6668 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.5678, allocations: 46.5 kB / 0.6668 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.5678, allocations: 0 / 0.6668 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001104/0.569, allocations: 0.4922 MB / 0.6673 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.569, allocations: 110.8 kB / 0.6674 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.5694, allocations: 393.7 kB / 0.6678 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.5695, allocations: 33.7 kB / 0.6678 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.5696, allocations: 220 kB / 0.668 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.698e-05/0.5697, allocations: 106.5 kB / 0.6681 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.5698, allocations: 78.06 kB / 0.6682 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.57, allocations: 354.7 kB / 0.6685 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.5703, allocations: 152.6 kB / 0.6687 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.5707, allocations: 258.2 kB / 0.6689 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007193/0.5714, allocations: 479.6 kB / 0.6694 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.5714, allocations: 4 kB / 0.6694 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001041/0.5725, allocations: 0.5434 MB / 0.6699 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.914e-05/0.5725, allocations: 71.31 kB / 0.67 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.5725, allocations: 4 kB / 0.67 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.5726, allocations: 4 kB / 0.67 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/0.573, allocations: 91.81 kB / 0.6701 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.573, allocations: 5.172 kB / 0.6701 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003782/0.5734, allocations: 51.42 kB / 0.6701 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/0.5735, allocations: 20 kB / 0.6702 GB, free: 4.25 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.0002526/0.5738, allocations: 189.6 kB / 0.6703 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.5739, allocations: 43.53 kB / 0.6704 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.575, allocations: 490.2 kB / 0.6708 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.575, allocations: 4 kB / 0.6708 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.575, allocations: 0 / 0.6708 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.575, allocations: 0 / 0.6708 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/0.5779, allocations: 2.449 MB / 0.6732 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.578, allocations: 0 / 0.6732 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.5783, allocations: 63.89 kB / 0.6733 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.5783, allocations: 8.125 kB / 0.6733 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.5783, allocations: 12 kB / 0.6733 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.022e-06/0.5783, allocations: 4 kB / 0.6733 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5783, allocations: 0 / 0.6733 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008101/0.5791, allocations: 0.6355 MB / 0.6739 GB, free: 15.96 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.5793, allocations: 124.5 kB / 0.6741 GB, free: 15.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.151e-05/0.5794, allocations: 19.83 kB / 0.6741 GB, free: 15.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/0.5798, allocations: 23.98 kB / 0.6741 GB, free: 15.78 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.859e-05/0.5799, allocations: 31.84 kB / 0.6741 GB, free: 15.75 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.153e-05/0.58, allocations: 23.98 kB / 0.6742 GB, free: 15.73 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0003925/0.5804, allocations: 359.1 kB / 0.6745 GB, free: 15.38 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5804, allocations: 0 / 0.6745 GB, free: 15.38 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.001108/0.5815, allocations: 347.8 kB / 0.6748 GB, free: 15.04 MB / 0.5138 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.002261/0.5838, allocations: 1.579 MB / 0.6764 GB, free: 13.43 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0008723/0.5847, allocations: 486.2 kB / 0.6768 GB, free: 12.93 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5847, allocations: 0 / 0.6768 GB, free: 12.93 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.585, allocations: 163.7 kB / 0.677 GB, free: 12.77 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.5865, allocations: 291.2 kB / 0.6773 GB, free: 12.51 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006257/0.5927, allocations: 4.651 MB / 0.6818 GB, free: 7.633 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.5933, allocations: 0.8387 MB / 0.6826 GB, free: 6.766 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.000526/0.5938, allocations: 118.9 kB / 0.6827 GB, free: 6.652 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.594, allocations: 143.4 kB / 0.6829 GB, free: 6.512 MB / 0.5138 GB Notification: Performance of SimCode: time 7.51e-07/0.5941, allocations: 0 / 0.6829 GB, free: 6.512 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04569/0.6397, allocations: 19.56 MB / 0.702 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.646, allocations: 6.75 kB / 0.702 GB, free: 3.16 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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