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.001553/0.001553, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001797/0.001796, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2001/0.2001, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 73.34 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.0947, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3667/0.4614, allocations: 184.7 MB / 0.6492 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.4636, allocations: 0.8978 MB / 0.6501 GB, free: 9.562 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002502/0.4638, allocations: 7.938 kB / 0.6501 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007145/0.4646, allocations: 206.6 kB / 0.6503 GB, free: 9.352 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005792/0.4652, allocations: 274.4 kB / 0.6506 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005554/0.4708, allocations: 1.924 MB / 0.6524 GB, free: 7.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001602/0.4724, allocations: 0.975 MB / 0.6534 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005856/0.473, allocations: 328.9 kB / 0.6537 GB, free: 5.867 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003633/0.4766, allocations: 1.562 MB / 0.6552 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006293/0.4773, allocations: 322.8 kB / 0.6555 GB, free: 3.984 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.4774, allocations: 48 kB / 0.6556 GB, free: 3.938 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005021/0.4824, allocations: 2.738 MB / 0.6583 GB, free: 1.195 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003326/0.4828, allocations: 207.4 kB / 0.6585 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004105/0.4832, allocations: 266.9 kB / 0.6587 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00411/0.4873, allocations: 2.042 MB / 0.6607 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4874, allocations: 0 / 0.6607 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4874, allocations: 0 / 0.6607 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.4874, allocations: 4 kB / 0.6607 GB, free: 14.68 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.002052/0.4895, allocations: 1.044 MB / 0.6617 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.4895, allocations: 12.03 kB / 0.6617 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.394e-05/0.4896, allocations: 82.52 kB / 0.6618 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/0.4899, allocations: 55.44 kB / 0.6619 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.4904, allocations: 361.9 kB / 0.6622 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.4904, allocations: 40.86 kB / 0.6623 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.4905, allocations: 40 kB / 0.6623 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008081/0.4913, allocations: 0.5159 MB / 0.6628 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.4913, allocations: 0 / 0.6628 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.4913, allocations: 16 kB / 0.6628 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.4914, allocations: 8 kB / 0.6628 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008079/0.4922, allocations: 0.4954 MB / 0.6633 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002412/0.4946, allocations: 1.974 MB / 0.6652 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006742/0.4953, allocations: 452.7 kB / 0.6657 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.4956, allocations: 186.4 kB / 0.6658 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007335/0.4963, allocations: 0.9533 MB / 0.6668 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.4964, allocations: 38.56 kB / 0.6668 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 1.933e-06/0.4964, allocations: 0 / 0.6668 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001059/0.4974, allocations: 0.4887 MB / 0.6673 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.4975, allocations: 114.7 kB / 0.6674 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.4979, allocations: 397.7 kB / 0.6678 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.498, allocations: 33.7 kB / 0.6678 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.4981, allocations: 220 kB / 0.668 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.385e-05/0.4982, allocations: 102.5 kB / 0.6681 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.4983, allocations: 78.06 kB / 0.6682 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.4984, allocations: 354.7 kB / 0.6685 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.4987, allocations: 148.6 kB / 0.6687 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003614/0.4991, allocations: 254.3 kB / 0.6689 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.4998, allocations: 483.6 kB / 0.6694 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4998, allocations: 3.938 kB / 0.6694 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000918/0.5007, allocations: 0.547 MB / 0.6699 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.5008, allocations: 71.28 kB / 0.67 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.5008, allocations: 4 kB / 0.67 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.5008, allocations: 4 kB / 0.67 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.5012, allocations: 88.31 kB / 0.6701 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.5012, allocations: 8 kB / 0.6701 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003164/0.5016, allocations: 55.42 kB / 0.6701 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.5016, allocations: 20 kB / 0.6702 GB, free: 4.266 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.000201/0.5018, allocations: 185.6 kB / 0.6703 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.502, allocations: 39.53 kB / 0.6704 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009616/0.5029, allocations: 488.7 kB / 0.6708 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.5029, allocations: 4 kB / 0.6708 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.503, allocations: 8 kB / 0.6709 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.503, allocations: 3.984 kB / 0.6709 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.5056, allocations: 2.437 MB / 0.6732 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.5057, allocations: 4 kB / 0.6732 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000284/0.506, allocations: 63.89 kB / 0.6733 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.506, allocations: 7.938 kB / 0.6733 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.506, allocations: 8 kB / 0.6733 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.506, allocations: 5.172 kB / 0.6733 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.506, allocations: 7.938 kB / 0.6733 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.5068, allocations: 0.6357 MB / 0.6739 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.998e-05/0.5069, allocations: 128.5 kB / 0.6741 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.507, allocations: 15.84 kB / 0.6741 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004214/0.5074, allocations: 23.92 kB / 0.6741 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.5075, allocations: 27.91 kB / 0.6741 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.5075, allocations: 23.98 kB / 0.6742 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003655/0.5079, allocations: 363.1 kB / 0.6745 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5079, allocations: 0 / 0.6745 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000994/0.5089, allocations: 347.8 kB / 0.6748 GB, free: 15.06 MB / 0.5137 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.002071/0.511, allocations: 1.581 MB / 0.6764 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008393/0.5119, allocations: 481.8 kB / 0.6768 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.5119, allocations: 0.75 kB / 0.6768 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.5122, allocations: 171.7 kB / 0.677 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.5136, allocations: 279.6 kB / 0.6773 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005947/0.5196, allocations: 4.647 MB / 0.6818 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.52, allocations: 0.8387 MB / 0.6826 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004623/0.5205, allocations: 114.2 kB / 0.6827 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.5208, allocations: 151.4 kB / 0.6829 GB, free: 6.531 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.5208, allocations: 0 / 0.6829 GB, free: 6.531 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04254/0.5633, allocations: 19.56 MB / 0.702 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.153/8.717, allocations: 4 kB / 0.702 GB, free: 3.18 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