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: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|springDamper.s_rel|springDamper.v_rel|sweptVolume.medium.T|trapezoid.T_start|trapezoid.count",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|springDamper.s_rel|springDamper.v_rel|sweptVolume.medium.T|trapezoid.T_start|trapezoid.count",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 108 kB / 17.33 MB, free: 5.996 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.00103/0.00103, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.382/1.382, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2145/0.2145, allocations: 44.17 MB / 336.2 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 71.12 kB / 407.9 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1269, allocations: 60.83 MB / 468.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.4486/0.5755, allocations: 158.6 MB / 0.6126 GB, free: 2.625 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004081/0.5796, allocations: 1.712 MB / 0.6142 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005455/0.5802, allocations: 15.88 kB / 0.6143 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007712/0.581, allocations: 182.9 kB / 0.6144 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002096/0.5831, allocations: 0.7072 MB / 0.6151 GB, free: 8 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.585, allocations: 0.6176 MB / 0.6157 GB, free: 15.39 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.5863, allocations: 1.158 MB / 0.6169 GB, free: 14.23 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004479/0.5868, allocations: 322.5 kB / 0.6172 GB, free: 13.91 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007801/0.5876, allocations: 458.3 kB / 0.6176 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004984/0.5881, allocations: 414.3 kB / 0.618 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.526e-05/0.5882, allocations: 48 kB / 0.618 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.5893, allocations: 0.5266 MB / 0.6186 GB, free: 12.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.5895, allocations: 155.5 kB / 0.6187 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.5898, allocations: 278.7 kB / 0.619 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.591, allocations: 0.9622 MB / 0.6199 GB, free: 11.09 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.591, allocations: 0 / 0.6199 GB, free: 11.09 MB / 462.1 MB Notification: Performance of FrontEnd: time 9.868e-06/0.591, allocations: 3.984 kB / 0.6199 GB, free: 11.09 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.591, allocations: 0 / 0.6199 GB, free: 11.09 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.001819/0.5928, allocations: 0.8944 MB / 0.6208 GB, free: 10.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.5929, allocations: 8.031 kB / 0.6208 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004086/0.5933, allocations: 76.27 kB / 0.6209 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005536/0.5939, allocations: 394.4 kB / 0.6212 GB, free: 9.633 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-05/0.594, allocations: 62.7 kB / 0.6213 GB, free: 9.566 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.442e-05/0.5941, allocations: 39.92 kB / 0.6213 GB, free: 9.527 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000971/0.595, allocations: 0.5205 MB / 0.6219 GB, free: 8.965 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.5951, allocations: 4 kB / 0.6219 GB, free: 8.961 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.381e-05/0.5951, allocations: 12 kB / 0.6219 GB, free: 8.949 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.5952, allocations: 20.64 kB / 0.6219 GB, free: 8.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009223/0.5961, allocations: 406.1 kB / 0.6223 GB, free: 8.527 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.003367/0.5995, allocations: 2.511 MB / 0.6247 GB, free: 5.836 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008461/0.6003, allocations: 339.4 kB / 0.6251 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.6007, allocations: 165.3 kB / 0.6252 GB, free: 5.332 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-05/0.6008, allocations: 8.219 kB / 0.6252 GB, free: 5.324 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005567/0.6013, allocations: 268.6 kB / 0.6255 GB, free: 5.043 MB / 462.1 MB Notification: Performance of pre-optimization done (n=34): time 3.587e-06/0.6013, allocations: 0 / 0.6255 GB, free: 5.043 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.01228/0.6136, allocations: 3.237 MB / 0.6286 GB, free: 1.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.6138, allocations: 166.2 kB / 0.6288 GB, free: 1.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.6142, allocations: 385.5 kB / 0.6292 GB, free: 1.094 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/0.6143, allocations: 37.7 kB / 0.6292 GB, free: 1.051 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.6145, allocations: 256 kB / 0.6294 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.6146, allocations: 157.8 kB / 0.6296 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.6148, allocations: 122.2 kB / 0.6297 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.615, allocations: 362.8 kB / 0.6301 GB, free: 156 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006238/0.6156, allocations: 217.1 kB / 0.6303 GB, free: 15.94 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/0.6164, allocations: 409.1 kB / 0.6307 GB, free: 15.46 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.6177, allocations: 0.6355 MB / 0.6313 GB, free: 14.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.6177, allocations: 4 kB / 0.6313 GB, free: 14.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001874/0.6196, allocations: 0.7902 MB / 0.632 GB, free: 13.94 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.636e-05/0.6196, allocations: 33.7 kB / 0.6321 GB, free: 13.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.6197, allocations: 11.98 kB / 0.6321 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004348/0.6201, allocations: 115.6 kB / 0.6322 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.6207, allocations: 135.8 kB / 0.6323 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005978/0.6213, allocations: 0.6772 MB / 0.633 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.6218, allocations: 56.83 kB / 0.633 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/0.6219, allocations: 47.98 kB / 0.6331 GB, free: 12.84 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.0003012/0.6222, allocations: 190.2 kB / 0.6333 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.885e-05/0.6223, allocations: 47.44 kB / 0.6333 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.6244, allocations: 0.746 MB / 0.634 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.6244, allocations: 4 kB / 0.6341 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.6244, allocations: 0 / 0.6341 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.6244, allocations: 11.92 kB / 0.6341 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/0.627, allocations: 1.274 MB / 0.6353 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.627, allocations: 4 kB / 0.6353 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.6275, allocations: 108 kB / 0.6354 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005929/0.6281, allocations: 104.7 kB / 0.6355 GB, free: 10.26 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.6282, allocations: 27.92 kB / 0.6355 GB, free: 10.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.6301, allocations: 1.821 MB / 0.6373 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6301, allocations: 0 / 0.6373 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.6325, allocations: 0.9812 MB / 0.6383 GB, free: 7.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.6327, allocations: 156.5 kB / 0.6384 GB, free: 7.078 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.804e-05/0.6328, allocations: 16 kB / 0.6384 GB, free: 7.062 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.6333, allocations: 47.94 kB / 0.6385 GB, free: 7.016 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.6335, allocations: 63.86 kB / 0.6385 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.247e-05/0.6336, allocations: 35.98 kB / 0.6386 GB, free: 6.918 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003054/0.6339, allocations: 271.1 kB / 0.6388 GB, free: 6.656 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6339, allocations: 0 / 0.6388 GB, free: 6.656 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008123/0.6347, allocations: 239.9 kB / 0.6391 GB, free: 6.422 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.0008091/0.6356, allocations: 302.9 kB / 0.6394 GB, free: 6.125 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.6373, allocations: 0.6225 MB / 0.64 GB, free: 5.492 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.6373, allocations: 7.938 kB / 0.64 GB, free: 5.484 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000879/0.6382, allocations: 422.6 kB / 0.6404 GB, free: 5.059 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.6393, allocations: 216.7 kB / 0.6406 GB, free: 4.855 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.6414, allocations: 1.315 MB / 0.6419 GB, free: 3.496 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.6419, allocations: 0.8668 MB / 0.6427 GB, free: 2.602 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006836/0.6426, allocations: 152.6 kB / 0.6429 GB, free: 2.449 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.6429, allocations: 75.42 kB / 0.6429 GB, free: 2.375 MB / 478.1 MB Notification: Performance of SimCode: time 1.243e-06/0.6429, allocations: 0 / 0.6429 GB, free: 2.375 MB / 478.1 MB Notification: Performance of Templates: time 0.02348/0.6664, allocations: 13.07 MB / 0.6557 GB, free: 5.406 MB / 494.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestSweptVolume/TestSweptVolume.csv","/var/lib/jenkins/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