Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",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.0008793/0.0008794, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.187/1.187, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007066/0.0007067, allocations: 88.97 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3037/0.3037, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003787, allocations: 8 kB / 432.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3828/0.488, allocations: 169.6 MB / 0.645 GB, free: 12.89 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.4899, allocations: 0.8776 MB / 0.6459 GB, free: 12.01 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004322/0.4903, allocations: 11.94 kB / 0.6459 GB, free: 12 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000756/0.4911, allocations: 167 kB / 0.6461 GB, free: 11.83 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0008488/0.492, allocations: 278.3 kB / 0.6463 GB, free: 11.56 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005987/0.498, allocations: 1.744 MB / 0.648 GB, free: 9.824 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.4995, allocations: 1.104 MB / 0.6491 GB, free: 8.719 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006546/0.5002, allocations: 276.8 kB / 0.6494 GB, free: 8.457 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004489/0.5047, allocations: 1.548 MB / 0.6509 GB, free: 6.906 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007267/0.5055, allocations: 310.9 kB / 0.6512 GB, free: 6.602 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.5056, allocations: 20 kB / 0.6512 GB, free: 6.582 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006866/0.5125, allocations: 2.94 MB / 0.6541 GB, free: 3.637 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004188/0.513, allocations: 171.5 kB / 0.6542 GB, free: 3.469 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006445/0.5136, allocations: 260.7 kB / 0.6545 GB, free: 3.207 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003539/0.5172, allocations: 1.466 MB / 0.6559 GB, free: 1.738 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.5172, allocations: 0 / 0.6559 GB, free: 1.738 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5172, allocations: 0 / 0.6559 GB, free: 1.738 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.5172, allocations: 8 kB / 0.6559 GB, free: 1.73 MB / 474.7 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.001912/0.5192, allocations: 0.9653 MB / 0.6569 GB, free: 0.707 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.5192, allocations: 15.97 kB / 0.6569 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.422e-05/0.5193, allocations: 78.53 kB / 0.657 GB, free: 0.6055 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002417/0.5196, allocations: 55.42 kB / 0.657 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005156/0.5201, allocations: 365.9 kB / 0.6574 GB, free: 160 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.5201, allocations: 29 kB / 0.6574 GB, free: 132 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/0.5202, allocations: 39.94 kB / 0.6574 GB, free: 88 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000937/0.5211, allocations: 0.5181 MB / 0.6579 GB, free: 15.54 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.5212, allocations: 4 kB / 0.6579 GB, free: 15.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.5212, allocations: 16 kB / 0.658 GB, free: 15.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.5212, allocations: 8 kB / 0.658 GB, free: 15.51 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000864/0.5221, allocations: 0.5023 MB / 0.6585 GB, free: 15.01 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.5248, allocations: 1.978 MB / 0.6604 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007424/0.5255, allocations: 464 kB / 0.6608 GB, free: 12.41 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.5259, allocations: 190.4 kB / 0.661 GB, free: 12.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000849/0.5267, allocations: 0.9494 MB / 0.6619 GB, free: 11.06 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.5268, allocations: 38.56 kB / 0.662 GB, free: 11.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=30): time 2.245e-06/0.5268, allocations: 0 / 0.662 GB, free: 11.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=30): time 0.00107/0.5279, allocations: 0.5065 MB / 0.6625 GB, free: 10.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/0.5279, allocations: 110.8 kB / 0.6626 GB, free: 10.37 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.5284, allocations: 401.5 kB / 0.663 GB, free: 9.969 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.5284, allocations: 33.7 kB / 0.663 GB, free: 9.93 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.5286, allocations: 220.1 kB / 0.6632 GB, free: 9.711 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.796e-05/0.5287, allocations: 102.5 kB / 0.6633 GB, free: 9.609 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.5287, allocations: 4 kB / 0.6633 GB, free: 9.605 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5289, allocations: 354.8 kB / 0.6636 GB, free: 9.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.5292, allocations: 148.7 kB / 0.6638 GB, free: 9.105 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.5296, allocations: 270 kB / 0.664 GB, free: 8.797 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007247/0.5303, allocations: 489.5 kB / 0.6645 GB, free: 8.262 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.5303, allocations: 11.88 kB / 0.6645 GB, free: 8.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009698/0.5313, allocations: 0.5605 MB / 0.6651 GB, free: 7.672 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.573e-05/0.5314, allocations: 63.39 kB / 0.6651 GB, free: 7.598 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.5314, allocations: 4 kB / 0.6651 GB, free: 7.594 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.5314, allocations: 8 kB / 0.6651 GB, free: 7.586 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.5318, allocations: 83.89 kB / 0.6652 GB, free: 7.504 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.5318, allocations: 4 kB / 0.6652 GB, free: 7.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.5322, allocations: 59.83 kB / 0.6653 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.443e-05/0.5323, allocations: 27.89 kB / 0.6653 GB, free: 7.418 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.5325, allocations: 205.5 kB / 0.6655 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.5326, allocations: 39.53 kB / 0.6655 GB, free: 7.168 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.5337, allocations: 498.5 kB / 0.666 GB, free: 6.668 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.5337, allocations: 4 kB / 0.666 GB, free: 6.664 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5337, allocations: 4.047 kB / 0.666 GB, free: 6.66 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.5337, allocations: 3.984 kB / 0.666 GB, free: 6.656 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00295/0.5367, allocations: 2.452 MB / 0.6684 GB, free: 3.859 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5367, allocations: 4 kB / 0.6684 GB, free: 3.855 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.537, allocations: 59.91 kB / 0.6685 GB, free: 3.797 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.537, allocations: 4 kB / 0.6685 GB, free: 3.793 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.537, allocations: 15.92 kB / 0.6685 GB, free: 3.777 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.5371, allocations: 4 kB / 0.6685 GB, free: 3.773 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.5371, allocations: 4.125 kB / 0.6685 GB, free: 3.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007747/0.5378, allocations: 0.6434 MB / 0.6691 GB, free: 3.09 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.538, allocations: 144.5 kB / 0.6693 GB, free: 2.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.978e-05/0.538, allocations: 11.94 kB / 0.6693 GB, free: 2.918 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.5385, allocations: 27.98 kB / 0.6693 GB, free: 2.891 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.5386, allocations: 27.91 kB / 0.6693 GB, free: 2.863 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-05/0.5386, allocations: 19.98 kB / 0.6694 GB, free: 2.844 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003596/0.539, allocations: 359.1 kB / 0.6697 GB, free: 2.496 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.539, allocations: 0 / 0.6697 GB, free: 2.496 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001055/0.5401, allocations: 375.7 kB / 0.6701 GB, free: 2.129 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002218/0.5423, allocations: 1.671 MB / 0.6717 GB, free: 432 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.1798/0.7221, allocations: 471.5 kB / 0.6721 GB, free: 150.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/0.7222, allocations: 3.438 kB / 0.6721 GB, free: 150.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000564/0.7227, allocations: 167.7 kB / 0.6723 GB, free: 150.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.7245, allocations: 246.4 kB / 0.6725 GB, free: 150.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004484/0.729, allocations: 2.728 MB / 0.6752 GB, free: 149.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.7293, allocations: 0.8347 MB / 0.676 GB, free: 149.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.7297, allocations: 149.7 kB / 0.6762 GB, free: 149 MB / 490.7 MB Notification: Performance of SimCode: time 2.405e-06/0.7297, allocations: 4.844 kB / 0.6762 GB, free: 149 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.37/5.099, allocations: 12.03 MB / 0.6879 GB, free: 147.8 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches