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.001609/0.001609, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002171/0.002171, allocations: 204.6 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3953, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.2213/0.6167, allocations: 184.7 MB / 0.7109 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002081/0.6188, allocations: 0.8899 MB / 0.7117 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004172/0.6193, allocations: 7.938 kB / 0.7117 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007779/0.6201, allocations: 214.6 kB / 0.7119 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007659/0.6209, allocations: 290.3 kB / 0.7122 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00565/0.6266, allocations: 1.937 MB / 0.7141 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001321/0.6279, allocations: 0.975 MB / 0.7151 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006957/0.6286, allocations: 333.1 kB / 0.7154 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004288/0.6329, allocations: 1.569 MB / 0.7169 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006797/0.6336, allocations: 310.9 kB / 0.7172 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.6338, allocations: 48 kB / 0.7173 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3609/0.9947, allocations: 2.785 MB / 0.72 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004235/0.9952, allocations: 201.2 kB / 0.7202 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005038/0.9957, allocations: 267.8 kB / 0.7204 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005626/1.001, allocations: 2.056 MB / 0.7224 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/1.001, allocations: 0 / 0.7224 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.044e-06/1.001, allocations: 1.125 kB / 0.7224 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.709e-05/1.001, allocations: 0 / 0.7224 GB, free: 4.965 MB / 0.5606 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.002308/1.004, allocations: 1.081 MB / 0.7235 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/1.004, allocations: 9.562 kB / 0.7235 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.477e-05/1.004, allocations: 77.77 kB / 0.7236 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002819/1.004, allocations: 59.31 kB / 0.7236 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/1.005, allocations: 387 kB / 0.724 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/1.005, allocations: 27.94 kB / 0.724 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.201e-05/1.005, allocations: 39.5 kB / 0.7241 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/1.006, allocations: 0.5156 MB / 0.7246 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/1.006, allocations: 3.188 kB / 0.7246 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.048e-05/1.006, allocations: 19.72 kB / 0.7246 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/1.006, allocations: 11.31 kB / 0.7246 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/1.007, allocations: 496.3 kB / 0.7251 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/1.01, allocations: 1.97 MB / 0.727 GB, free: 18.67 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007476/1.011, allocations: 466.2 kB / 0.7274 GB, free: 18.5 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003154/1.011, allocations: 183.7 kB / 0.7276 GB, free: 18.48 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008803/1.012, allocations: 0.9476 MB / 0.7285 GB, free: 17.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/1.012, allocations: 39.31 kB / 0.7286 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/1.012, allocations: 0 / 0.7286 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30): time 0.001167/1.013, allocations: 0.4951 MB / 0.7291 GB, free: 17.36 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/1.013, allocations: 106.6 kB / 0.7292 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/1.014, allocations: 397.9 kB / 0.7295 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/1.014, allocations: 33.33 kB / 0.7296 GB, free: 17.09 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/1.014, allocations: 223.6 kB / 0.7298 GB, free: 16.96 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.765e-05/1.014, allocations: 112.8 kB / 0.7299 GB, free: 16.89 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/1.014, allocations: 81.67 kB / 0.73 GB, free: 16.87 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001414/1.014, allocations: 351.9 kB / 0.7303 GB, free: 16.55 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/1.015, allocations: 152.1 kB / 0.7305 GB, free: 16.55 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/1.015, allocations: 258.8 kB / 0.7307 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006183/1.016, allocations: 482.6 kB / 0.7312 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/1.016, allocations: 0 / 0.7312 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008768/1.016, allocations: 0.548 MB / 0.7317 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.338e-05/1.016, allocations: 69.02 kB / 0.7318 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/1.017, allocations: 4.906 kB / 0.7318 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/1.017, allocations: 8.156 kB / 0.7318 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/1.017, allocations: 84.44 kB / 0.7319 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/1.017, allocations: 9.656 kB / 0.7319 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/1.017, allocations: 49.06 kB / 0.7319 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/1.017, allocations: 25.45 kB / 0.7319 GB, free: 16.05 MB / 0.5762 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.0002044/1.018, allocations: 186.1 kB / 0.7321 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/1.018, allocations: 45.22 kB / 0.7322 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009265/1.019, allocations: 486 kB / 0.7326 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/1.019, allocations: 4.344 kB / 0.7326 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/1.019, allocations: 3.375 kB / 0.7326 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/1.019, allocations: 0 / 0.7326 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/1.022, allocations: 2.439 MB / 0.735 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/1.022, allocations: 13.11 kB / 0.735 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/1.022, allocations: 61.41 kB / 0.7351 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/1.022, allocations: 3.688 kB / 0.7351 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/1.022, allocations: 7.5 kB / 0.7351 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.331e-06/1.022, allocations: 9.875 kB / 0.7351 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.022, allocations: 0.6875 kB / 0.7351 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000732/1.023, allocations: 0.6495 MB / 0.7357 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/1.023, allocations: 122.8 kB / 0.7358 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/1.023, allocations: 17.64 kB / 0.7359 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/1.023, allocations: 19.41 kB / 0.7359 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.793e-05/1.023, allocations: 26.8 kB / 0.7359 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-05/1.023, allocations: 24.73 kB / 0.7359 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003342/1.024, allocations: 361.2 kB / 0.7363 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.024, allocations: 2.375 kB / 0.7363 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001142/1.025, allocations: 357.7 kB / 0.7366 GB, free: 13.31 MB / 0.5762 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.002191/1.027, allocations: 1.582 MB / 0.7382 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008348/1.028, allocations: 477.3 kB / 0.7386 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/1.028, allocations: 0 / 0.7386 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002803/1.028, allocations: 165.1 kB / 0.7388 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/1.03, allocations: 288.3 kB / 0.7391 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005503/1.035, allocations: 4.599 MB / 0.7435 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/1.036, allocations: 0.8389 MB / 0.7444 GB, free: 9.438 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004428/1.036, allocations: 121.4 kB / 0.7445 GB, free: 9.418 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/1.036, allocations: 144.5 kB / 0.7446 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of SimCode: time 1.663e-06/1.036, allocations: 0 / 0.7446 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03902/1.075, allocations: 19.72 MB / 0.7639 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.79/9.865, allocations: 3.219 kB / 0.7639 GB, free: 6.891 MB / 0.5762 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