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.00079/0.0007901, allocations: 91.11 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008523/0.0008523, allocations: 203.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.7 MB / 246.8 MB, free: 9.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1928/0.1928, allocations: 46.18 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002904, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 63.56 MB / 483.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4247/0.5293, allocations: 180.9 MB / 0.6485 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.5314, allocations: 0.9134 MB / 0.6494 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.5316, allocations: 15.88 kB / 0.6494 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006114/0.5323, allocations: 171.1 kB / 0.6496 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004787/0.5327, allocations: 266.6 kB / 0.6499 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004319/0.5371, allocations: 1.662 MB / 0.6515 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.5384, allocations: 1.303 MB / 0.6528 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003696/0.5388, allocations: 266.1 kB / 0.653 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002836/0.5416, allocations: 1.441 MB / 0.6544 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000461/0.5421, allocations: 322.7 kB / 0.6547 GB, free: 9.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.5421, allocations: 20 kB / 0.6547 GB, free: 9.074 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004559/0.5467, allocations: 2.874 MB / 0.6576 GB, free: 6.195 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.547, allocations: 171.5 kB / 0.6577 GB, free: 6.027 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.5473, allocations: 264.6 kB / 0.658 GB, free: 5.762 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003506/0.5508, allocations: 2.073 MB / 0.66 GB, free: 3.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5509, allocations: 0 / 0.66 GB, free: 3.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5509, allocations: 0 / 0.66 GB, free: 3.684 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.5509, allocations: 0 / 0.66 GB, free: 3.684 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.001717/0.5526, allocations: 0.9584 MB / 0.6609 GB, free: 2.664 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.5527, allocations: 12.03 kB / 0.6609 GB, free: 2.652 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.246e-05/0.5528, allocations: 74.53 kB / 0.661 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002524/0.553, allocations: 59.42 kB / 0.6611 GB, free: 2.512 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.5535, allocations: 361.9 kB / 0.6614 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.5535, allocations: 36.94 kB / 0.6614 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-05/0.5536, allocations: 44 kB / 0.6615 GB, free: 2.039 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000861/0.5545, allocations: 0.5159 MB / 0.662 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.5545, allocations: 4 kB / 0.662 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.5546, allocations: 16 kB / 0.662 GB, free: 1.473 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.5546, allocations: 12 kB / 0.662 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008533/0.5554, allocations: 0.4955 MB / 0.6625 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.558, allocations: 2.002 MB / 0.6645 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.5587, allocations: 456.7 kB / 0.6649 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.559, allocations: 190.5 kB / 0.6651 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007765/0.5598, allocations: 0.9455 MB / 0.666 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.5598, allocations: 46.5 kB / 0.666 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.5599, allocations: 0 / 0.666 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001085/0.5609, allocations: 0.5048 MB / 0.6665 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.561, allocations: 106.8 kB / 0.6666 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.5614, allocations: 397.6 kB / 0.667 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.5615, allocations: 33.7 kB / 0.6671 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.5616, allocations: 208.2 kB / 0.6673 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.476e-05/0.5617, allocations: 110.5 kB / 0.6674 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.874e-05/0.5618, allocations: 37.7 kB / 0.6674 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.5619, allocations: 358.7 kB / 0.6677 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.5623, allocations: 152.6 kB / 0.6679 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.5626, allocations: 266.2 kB / 0.6681 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007211/0.5634, allocations: 499.7 kB / 0.6686 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5634, allocations: 0 / 0.6686 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009819/0.5644, allocations: 0.5697 MB / 0.6692 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.103e-05/0.5644, allocations: 61.91 kB / 0.6692 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.5644, allocations: 4.375 kB / 0.6692 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.5645, allocations: 11.94 kB / 0.6692 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.5649, allocations: 95.81 kB / 0.6693 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.5649, allocations: 4 kB / 0.6693 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.5652, allocations: 55.45 kB / 0.6694 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/0.5653, allocations: 20 kB / 0.6694 GB, free: 9.297 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.0002122/0.5655, allocations: 189.7 kB / 0.6696 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.5656, allocations: 43.53 kB / 0.6696 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.5666, allocations: 498.1 kB / 0.6701 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5667, allocations: 4 kB / 0.6701 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.5667, allocations: 4 kB / 0.6701 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.5667, allocations: 7.984 kB / 0.6701 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002843/0.5695, allocations: 2.443 MB / 0.6725 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.5696, allocations: 4 kB / 0.6725 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.5698, allocations: 63.89 kB / 0.6726 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.5699, allocations: 7.938 kB / 0.6726 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.5699, allocations: 12.19 kB / 0.6726 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.5699, allocations: 4 kB / 0.6726 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5699, allocations: 4 kB / 0.6726 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007778/0.5707, allocations: 0.6516 MB / 0.6732 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.5708, allocations: 148.3 kB / 0.6734 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/0.5709, allocations: 12 kB / 0.6734 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004487/0.5714, allocations: 27.97 kB / 0.6734 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.194e-05/0.5714, allocations: 24.06 kB / 0.6734 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/0.5715, allocations: 23.97 kB / 0.6735 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003848/0.5719, allocations: 367 kB / 0.6738 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5719, allocations: 4 kB / 0.6738 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001045/0.5729, allocations: 351.7 kB / 0.6741 GB, free: 4.02 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.002028/0.575, allocations: 1.58 MB / 0.6757 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007937/0.5758, allocations: 483 kB / 0.6762 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5758, allocations: 4 kB / 0.6762 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003195/0.5761, allocations: 163.7 kB / 0.6763 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.5777, allocations: 263.2 kB / 0.6766 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00595/0.5836, allocations: 4.847 MB / 0.6813 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.5841, allocations: 0.835 MB / 0.6821 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004795/0.5846, allocations: 119.7 kB / 0.6822 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.5848, allocations: 143.4 kB / 0.6824 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of SimCode: time 8.12e-07/0.5848, allocations: 0 / 0.6824 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03656/0.6214, allocations: 18.84 MB / 0.7008 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003321/0.6217, allocations: 267.8 kB / 0.701 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.423/3.045, allocations: 0 / 0.701 GB, free: 8.387 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