Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001064, allocations: 115.7 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002071/0.002071, allocations: 185 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2095/0.2095, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001549, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4029, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.1903/0.5932, allocations: 160.5 MB / 0.6751 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004097/0.5973, allocations: 1.668 MB / 0.6768 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007509/0.5981, allocations: 15.88 kB / 0.6768 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0009075/0.5991, allocations: 202.6 kB / 0.677 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003021/0.6022, allocations: 0.7887 MB / 0.6778 GB, free: 8.371 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.6045, allocations: 0.6662 MB / 0.6784 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001862/0.6064, allocations: 1.146 MB / 0.6795 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006191/0.607, allocations: 333.9 kB / 0.6798 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.6082, allocations: 478.2 kB / 0.6803 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008166/0.609, allocations: 386.4 kB / 0.6807 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001723/0.6092, allocations: 44 kB / 0.6807 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001747/0.611, allocations: 0.5656 MB / 0.6813 GB, free: 4.77 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000285/0.6113, allocations: 167.5 kB / 0.6814 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004753/0.6117, allocations: 270.7 kB / 0.6817 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002147/0.6139, allocations: 0.9617 MB / 0.6826 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.6139, allocations: 0 / 0.6826 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6139, allocations: 0 / 0.6826 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.527e-05/0.614, allocations: 0 / 0.6826 GB, free: 3.375 MB / 0.5294 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.002328/0.6163, allocations: 0.9208 MB / 0.6835 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.6164, allocations: 8.031 kB / 0.6835 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.6165, allocations: 78.53 kB / 0.6836 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000473/0.617, allocations: 71.64 kB / 0.6837 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007393/0.6177, allocations: 414.6 kB / 0.6841 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.6178, allocations: 70.61 kB / 0.6841 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.696e-05/0.6179, allocations: 36 kB / 0.6842 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009747/0.6189, allocations: 0.5127 MB / 0.6847 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.6189, allocations: 7.938 kB / 0.6847 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.619, allocations: 23.98 kB / 0.6847 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.405e-05/0.619, allocations: 16.64 kB / 0.6847 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008946/0.6199, allocations: 402.2 kB / 0.6851 GB, free: 0.6875 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003292/0.6232, allocations: 2.502 MB / 0.6875 GB, free: 14 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008044/0.624, allocations: 342.2 kB / 0.6879 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.6244, allocations: 169.2 kB / 0.688 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.6245, allocations: 4.281 kB / 0.688 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005605/0.625, allocations: 268.8 kB / 0.6883 GB, free: 13.21 MB / 0.545 GB Notification: Performance of pre-optimization done (n=34): time 2.004e-06/0.6251, allocations: 0 / 0.6883 GB, free: 13.21 MB / 0.545 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: sweptVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=46): time 0.01241/0.6375, allocations: 3.241 MB / 0.6915 GB, free: 9.836 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.6376, allocations: 166.2 kB / 0.6916 GB, free: 9.637 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004456/0.6381, allocations: 385.5 kB / 0.692 GB, free: 9.25 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.305e-05/0.6381, allocations: 37.7 kB / 0.692 GB, free: 9.207 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.6383, allocations: 264.5 kB / 0.6923 GB, free: 8.945 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.6385, allocations: 162.6 kB / 0.6924 GB, free: 8.785 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.6387, allocations: 126.3 kB / 0.6925 GB, free: 8.656 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.6388, allocations: 358.8 kB / 0.6929 GB, free: 8.297 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/0.6394, allocations: 217.2 kB / 0.6931 GB, free: 8.086 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007252/0.6402, allocations: 409.1 kB / 0.6935 GB, free: 7.605 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.6415, allocations: 0.6394 MB / 0.6941 GB, free: 6.895 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.6415, allocations: 4 kB / 0.6941 GB, free: 6.891 MB / 0.545 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001941/0.6435, allocations: 0.7869 MB / 0.6949 GB, free: 6.086 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.607e-05/0.6435, allocations: 37.69 kB / 0.6949 GB, free: 6.043 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.6436, allocations: 8 kB / 0.6949 GB, free: 6.035 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004406/0.644, allocations: 112.8 kB / 0.695 GB, free: 5.922 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/0.6446, allocations: 140.2 kB / 0.6952 GB, free: 5.785 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000617/0.6452, allocations: 0.6772 MB / 0.6958 GB, free: 5.082 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.6458, allocations: 43.95 kB / 0.6959 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-05/0.6459, allocations: 51.98 kB / 0.6959 GB, free: 4.988 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,sweptVolume.regularFlow[1],sweptVolume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003151/0.6462, allocations: 193.7 kB / 0.6961 GB, free: 4.789 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.6463, allocations: 47.72 kB / 0.6961 GB, free: 4.742 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.6482, allocations: 0.7407 MB / 0.6969 GB, free: 3.984 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.6482, allocations: 4 kB / 0.6969 GB, free: 3.98 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.6482, allocations: 7.938 kB / 0.6969 GB, free: 3.973 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.6483, allocations: 3.984 kB / 0.6969 GB, free: 3.969 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.6509, allocations: 1.278 MB / 0.6981 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.6509, allocations: 0 / 0.6981 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/0.6514, allocations: 112 kB / 0.6982 GB, free: 2.508 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005517/0.6519, allocations: 108.7 kB / 0.6983 GB, free: 2.398 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.652, allocations: 19.98 kB / 0.6984 GB, free: 2.379 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/0.6538, allocations: 1.821 MB / 0.7001 GB, free: 428 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.6538, allocations: 0 / 0.7001 GB, free: 428 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.6561, allocations: 0.9827 MB / 0.7011 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.6564, allocations: 164.7 kB / 0.7013 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.61e-05/0.6565, allocations: 12 kB / 0.7013 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005034/0.657, allocations: 47.94 kB / 0.7013 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.6571, allocations: 63.86 kB / 0.7014 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.6572, allocations: 32 kB / 0.7014 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000316/0.6575, allocations: 271.1 kB / 0.7017 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.855e-06/0.6575, allocations: 0 / 0.7017 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008311/0.6584, allocations: 239.6 kB / 0.7019 GB, free: 14.57 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (sweptVolume.medium.T,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003247/0.6616, allocations: 1.711 MB / 0.7036 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001603/0.6632, allocations: 0.6069 MB / 0.7042 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.6633, allocations: 0 / 0.7042 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009094/0.6642, allocations: 414.6 kB / 0.7046 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.6654, allocations: 212.2 kB / 0.7048 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008588/0.674, allocations: 5.086 MB / 0.7097 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.6744, allocations: 0.8553 MB / 0.7106 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005685/0.675, allocations: 160.5 kB / 0.7107 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.6754, allocations: 195.4 kB / 0.7109 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of SimCode: time 7.72e-07/0.6754, allocations: 0 / 0.7109 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2879/0.9633, allocations: 18.36 MB / 0.7288 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.29, allocations: 2.688 kB / 0.7288 GB, free: 184.5 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestSweptVolume/TestSweptVolume.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches