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.001127/0.001127, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001113/0.001113, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.301/1.301, allocations: 222.9 MB / 242.3 MB, free: 15.24 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.1916/0.1916, allocations: 44.18 MB / 336.6 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.3 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09419, allocations: 60.81 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.3338/0.428, allocations: 160.5 MB / 0.6151 GB, free: 116 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.4309, allocations: 1.667 MB / 0.6167 GB, free: 14.44 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003636/0.4313, allocations: 19.88 kB / 0.6167 GB, free: 14.42 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006093/0.4319, allocations: 202.7 kB / 0.6169 GB, free: 14.22 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001863/0.4338, allocations: 0.7715 MB / 0.6177 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.4354, allocations: 0.6804 MB / 0.6183 GB, free: 12.78 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.4366, allocations: 1.154 MB / 0.6195 GB, free: 11.62 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004733/0.4371, allocations: 318.5 kB / 0.6198 GB, free: 11.31 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007314/0.4378, allocations: 466.2 kB / 0.6202 GB, free: 10.85 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004932/0.4383, allocations: 386.4 kB / 0.6206 GB, free: 10.47 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.955e-05/0.4385, allocations: 44 kB / 0.6206 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009421/0.4394, allocations: 0.5227 MB / 0.6211 GB, free: 9.906 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.4396, allocations: 155.5 kB / 0.6213 GB, free: 9.754 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002783/0.4399, allocations: 270.7 kB / 0.6215 GB, free: 9.488 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.441, allocations: 0.9583 MB / 0.6225 GB, free: 8.527 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.441, allocations: 0 / 0.6225 GB, free: 8.527 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.441, allocations: 0 / 0.6225 GB, free: 8.527 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.441, allocations: 0 / 0.6225 GB, free: 8.527 MB / 462.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.001675/0.4427, allocations: 0.8952 MB / 0.6233 GB, free: 7.578 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.4428, allocations: 8.031 kB / 0.6234 GB, free: 7.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.4429, allocations: 78.53 kB / 0.6234 GB, free: 7.484 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003758/0.4433, allocations: 75.31 kB / 0.6235 GB, free: 7.41 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.4438, allocations: 402.2 kB / 0.6239 GB, free: 6.973 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-05/0.4439, allocations: 54.69 kB / 0.6239 GB, free: 6.914 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.977e-05/0.444, allocations: 39.94 kB / 0.624 GB, free: 6.875 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009737/0.445, allocations: 0.5205 MB / 0.6245 GB, free: 6.316 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.445, allocations: 3.984 kB / 0.6245 GB, free: 6.312 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/0.4451, allocations: 16.88 kB / 0.6245 GB, free: 6.297 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.71e-05/0.4451, allocations: 20.59 kB / 0.6245 GB, free: 6.277 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009294/0.446, allocations: 406.1 kB / 0.6249 GB, free: 5.879 MB / 462.1 MB 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.002968/0.449, allocations: 2.506 MB / 0.6274 GB, free: 3.191 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008068/0.4498, allocations: 343.4 kB / 0.6277 GB, free: 2.848 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003793/0.4502, allocations: 169.1 kB / 0.6278 GB, free: 2.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.4503, allocations: 4.281 kB / 0.6279 GB, free: 2.676 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005296/0.4508, allocations: 268.8 kB / 0.6281 GB, free: 2.391 MB / 462.1 MB Notification: Performance of pre-optimization done (n=34): time 1.543e-06/0.4508, allocations: 0 / 0.6281 GB, free: 2.391 MB / 462.1 MB 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.01238/0.4632, allocations: 3.229 MB / 0.6313 GB, free: 15.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.4633, allocations: 166.1 kB / 0.6314 GB, free: 14.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.4637, allocations: 385.5 kB / 0.6318 GB, free: 14.45 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.572e-05/0.4637, allocations: 37.7 kB / 0.6318 GB, free: 14.41 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.4639, allocations: 256 kB / 0.6321 GB, free: 14.15 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.464, allocations: 165.7 kB / 0.6322 GB, free: 13.99 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.4642, allocations: 122.2 kB / 0.6323 GB, free: 13.86 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4643, allocations: 362.7 kB / 0.6327 GB, free: 13.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/0.465, allocations: 217.1 kB / 0.6329 GB, free: 13.29 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007424/0.4657, allocations: 409.1 kB / 0.6333 GB, free: 12.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.467, allocations: 0.6394 MB / 0.6339 GB, free: 12.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4671, allocations: 0 / 0.6339 GB, free: 12.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001908/0.469, allocations: 0.7948 MB / 0.6347 GB, free: 11.28 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.469, allocations: 33.7 kB / 0.6347 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.469, allocations: 4 kB / 0.6347 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004104/0.4694, allocations: 118.3 kB / 0.6348 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005546/0.47, allocations: 127.8 kB / 0.635 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000547/0.4706, allocations: 0.6811 MB / 0.6356 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.4711, allocations: 43.95 kB / 0.6357 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-05/0.4712, allocations: 47.98 kB / 0.6357 GB, free: 10.2 MB / 478.1 MB 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.0002346/0.4714, allocations: 201.8 kB / 0.6359 GB, free: 9.992 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.4715, allocations: 47.44 kB / 0.6359 GB, free: 9.945 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00206/0.4736, allocations: 0.7421 MB / 0.6367 GB, free: 9.191 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4736, allocations: 8 kB / 0.6367 GB, free: 9.184 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.4736, allocations: 4 kB / 0.6367 GB, free: 9.18 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.4736, allocations: 7.922 kB / 0.6367 GB, free: 9.172 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/0.4761, allocations: 1.274 MB / 0.6379 GB, free: 7.824 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4761, allocations: 8.031 kB / 0.6379 GB, free: 7.816 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.4766, allocations: 111.8 kB / 0.6381 GB, free: 7.707 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005591/0.4772, allocations: 100.7 kB / 0.6381 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/0.4772, allocations: 23.98 kB / 0.6382 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/0.479, allocations: 1.809 MB / 0.6399 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.479, allocations: 4.031 kB / 0.6399 GB, free: 5.625 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.4813, allocations: 0.9773 MB / 0.6409 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.4815, allocations: 160.5 kB / 0.641 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.98e-05/0.4816, allocations: 23.83 kB / 0.6411 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/0.4821, allocations: 43.95 kB / 0.6411 GB, free: 4.371 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.4822, allocations: 59.92 kB / 0.6412 GB, free: 4.312 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.353e-05/0.4823, allocations: 31.98 kB / 0.6412 GB, free: 4.281 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002752/0.4826, allocations: 275.1 kB / 0.6415 GB, free: 4.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4826, allocations: 0 / 0.6415 GB, free: 4.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007155/0.4833, allocations: 235.9 kB / 0.6417 GB, free: 3.789 MB / 478.1 MB 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.003207/0.4865, allocations: 1.706 MB / 0.6434 GB, free: 2.043 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.4881, allocations: 0.6265 MB / 0.644 GB, free: 1.406 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4882, allocations: 0 / 0.644 GB, free: 1.406 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008519/0.489, allocations: 426.4 kB / 0.6444 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.4901, allocations: 221.3 kB / 0.6446 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008087/0.4982, allocations: 5.128 MB / 0.6496 GB, free: 11.39 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.4986, allocations: 0.8514 MB / 0.6504 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000662/0.4992, allocations: 155 kB / 0.6506 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.4996, allocations: 199.4 kB / 0.6508 GB, free: 10.17 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4996, allocations: 3.938 kB / 0.6508 GB, free: 10.17 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.042/0.5416, allocations: 18.15 MB / 0.6685 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.87, allocations: 7.719 kB / 0.6685 GB, free: 8.254 MB / 0.4981 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