Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.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.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001162, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2325/0.2325, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001567, allocations: 83.86 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4101, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.225/0.6351, allocations: 163.4 MB / 0.6901 GB, free: 13.79 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005393/0.6405, allocations: 1.669 MB / 0.6917 GB, free: 12.11 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008753/0.6415, allocations: 11.94 kB / 0.6917 GB, free: 12.1 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.6427, allocations: 210.5 kB / 0.6919 GB, free: 11.89 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003742/0.6465, allocations: 0.7962 MB / 0.6927 GB, free: 11.1 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003438/0.65, allocations: 0.6722 MB / 0.6934 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002491/0.6525, allocations: 1.158 MB / 0.6945 GB, free: 9.273 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008321/0.6533, allocations: 326.9 kB / 0.6948 GB, free: 8.949 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001485/0.6548, allocations: 489 kB / 0.6953 GB, free: 8.473 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009498/0.6558, allocations: 378.5 kB / 0.6956 GB, free: 8.102 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000225/0.6561, allocations: 48 kB / 0.6957 GB, free: 8.055 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.6583, allocations: 0.5801 MB / 0.6962 GB, free: 7.48 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004062/0.6587, allocations: 155.5 kB / 0.6964 GB, free: 7.328 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008061/0.6596, allocations: 274.7 kB / 0.6967 GB, free: 7.059 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00303/0.6626, allocations: 0.9655 MB / 0.6976 GB, free: 6.09 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.6626, allocations: 0 / 0.6976 GB, free: 6.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.695e-06/0.6627, allocations: 0 / 0.6976 GB, free: 6.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.216e-05/0.6627, allocations: 0 / 0.6976 GB, free: 6.09 MB / 0.545 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.003184/0.6659, allocations: 0.9209 MB / 0.6985 GB, free: 5.113 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.666, allocations: 12.03 kB / 0.6985 GB, free: 5.102 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.6662, allocations: 74.53 kB / 0.6986 GB, free: 5.02 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006853/0.6669, allocations: 83.59 kB / 0.6987 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.6681, allocations: 414.6 kB / 0.6991 GB, free: 4.492 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/0.6683, allocations: 62.62 kB / 0.6991 GB, free: 4.422 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.6684, allocations: 39.95 kB / 0.6992 GB, free: 4.383 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.67, allocations: 0.5205 MB / 0.6997 GB, free: 3.828 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/0.6701, allocations: 7.984 kB / 0.6997 GB, free: 3.82 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-05/0.6702, allocations: 20 kB / 0.6997 GB, free: 3.801 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.105e-05/0.6702, allocations: 12.66 kB / 0.6997 GB, free: 3.785 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.6716, allocations: 398.2 kB / 0.7001 GB, free: 3.398 MB / 0.545 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.005473/0.6771, allocations: 2.466 MB / 0.7025 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.6784, allocations: 339.4 kB / 0.7028 GB, free: 428 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006183/0.6791, allocations: 165.2 kB / 0.703 GB, free: 260 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 6.035e-05/0.6792, allocations: 4.281 kB / 0.703 GB, free: 256 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009068/0.6801, allocations: 272.8 kB / 0.7032 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 6.762e-06/0.6801, allocations: 3.984 kB / 0.7032 GB, free: 15.96 MB / 0.5606 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.01933/0.6994, allocations: 3.25 MB / 0.7064 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.6996, allocations: 166.2 kB / 0.7066 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008075/0.7005, allocations: 381.6 kB / 0.7069 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.7006, allocations: 37.7 kB / 0.707 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00032/0.7009, allocations: 264.4 kB / 0.7072 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.7012, allocations: 162.6 kB / 0.7074 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003234/0.7015, allocations: 126.3 kB / 0.7075 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002176/0.7018, allocations: 358.7 kB / 0.7078 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009028/0.7027, allocations: 221.1 kB / 0.7081 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.7038, allocations: 409 kB / 0.7084 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.7057, allocations: 0.6355 MB / 0.7091 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.7058, allocations: 4 kB / 0.7091 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002846/0.7086, allocations: 0.7946 MB / 0.7098 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.959e-05/0.7087, allocations: 41.69 kB / 0.7099 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.7087, allocations: 8 kB / 0.7099 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006244/0.7094, allocations: 112.8 kB / 0.71 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008149/0.7102, allocations: 144.2 kB / 0.7101 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009076/0.7111, allocations: 0.6733 MB / 0.7108 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007673/0.7119, allocations: 43.95 kB / 0.7108 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.712, allocations: 51.98 kB / 0.7109 GB, free: 7.715 MB / 0.5606 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.0004258/0.7125, allocations: 197.7 kB / 0.7111 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.7126, allocations: 51.67 kB / 0.7111 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002837/0.7155, allocations: 0.725 MB / 0.7118 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.7155, allocations: 8 kB / 0.7118 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.7155, allocations: 3.938 kB / 0.7118 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.7155, allocations: 7.984 kB / 0.7118 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.7196, allocations: 1.273 MB / 0.7131 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.7196, allocations: 0 / 0.7131 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.7203, allocations: 115.9 kB / 0.7132 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008469/0.7212, allocations: 100.8 kB / 0.7133 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.575e-05/0.7213, allocations: 19.98 kB / 0.7133 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002887/0.7242, allocations: 1.83 MB / 0.7151 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.7242, allocations: 3.938 kB / 0.7151 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003555/0.7278, allocations: 0.9713 MB / 0.7161 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004171/0.7282, allocations: 168.8 kB / 0.7162 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.7283, allocations: 12 kB / 0.7162 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006939/0.7291, allocations: 39.95 kB / 0.7163 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000249/0.7293, allocations: 67.86 kB / 0.7163 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-05/0.7294, allocations: 39.92 kB / 0.7164 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000477/0.7299, allocations: 271.1 kB / 0.7166 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/0.7299, allocations: 0 / 0.7166 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001305/0.7312, allocations: 235.7 kB / 0.7169 GB, free: 1.305 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.2779/1.009, allocations: 1.704 MB / 0.7185 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001814/1.011, allocations: 0.6054 MB / 0.7191 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/1.011, allocations: 0.5312 kB / 0.7191 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009647/1.012, allocations: 417.2 kB / 0.7195 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/1.013, allocations: 220.5 kB / 0.7197 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/1.021, allocations: 5.076 MB / 0.7247 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/1.021, allocations: 0.8618 MB / 0.7255 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005129/1.021, allocations: 157.1 kB / 0.7257 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/1.022, allocations: 191 kB / 0.7258 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of SimCode: time 6.11e-07/1.022, allocations: 0 / 0.7258 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03959/1.061, allocations: 18.4 MB / 0.7438 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/13.21, allocations: 10.08 kB / 0.7438 GB, free: 165.4 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches