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.001386/0.001386, 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.001629/0.001629, 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.289/1.289, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.184/0.184, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 60.97 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09063/0.09181, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.3197/0.4116, allocations: 160.5 MB / 0.6151 GB, free: 72 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.4143, allocations: 1.667 MB / 0.6167 GB, free: 14.4 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.4146, allocations: 15.88 kB / 0.6167 GB, free: 14.38 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005665/0.4151, allocations: 202.6 kB / 0.6169 GB, free: 14.18 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001698/0.4169, allocations: 0.773 MB / 0.6177 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.4182, allocations: 0.681 MB / 0.6183 GB, free: 12.73 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.4192, allocations: 1.146 MB / 0.6195 GB, free: 11.59 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003972/0.4196, allocations: 328.9 kB / 0.6198 GB, free: 11.26 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006023/0.4203, allocations: 470.2 kB / 0.6202 GB, free: 10.8 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004142/0.4207, allocations: 382.5 kB / 0.6206 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.418e-05/0.4208, allocations: 44 kB / 0.6206 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008629/0.4217, allocations: 0.5227 MB / 0.6211 GB, free: 9.859 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.4218, allocations: 151.5 kB / 0.6213 GB, free: 9.711 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002589/0.4221, allocations: 274.7 kB / 0.6215 GB, free: 9.441 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.4231, allocations: 0.9505 MB / 0.6225 GB, free: 8.488 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4232, allocations: 0 / 0.6225 GB, free: 8.488 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4232, allocations: 0 / 0.6225 GB, free: 8.488 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.4232, allocations: 4 kB / 0.6225 GB, free: 8.484 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.001661/0.4248, allocations: 0.8952 MB / 0.6233 GB, free: 7.535 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.4249, allocations: 12.03 kB / 0.6234 GB, free: 7.523 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.33e-05/0.425, allocations: 70.53 kB / 0.6234 GB, free: 7.445 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003688/0.4254, allocations: 79.33 kB / 0.6235 GB, free: 7.367 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.4259, allocations: 402.2 kB / 0.6239 GB, free: 6.93 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.74e-05/0.426, allocations: 54.7 kB / 0.6239 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.737e-05/0.4261, allocations: 39.94 kB / 0.624 GB, free: 6.832 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000921/0.427, allocations: 0.5205 MB / 0.6245 GB, free: 6.273 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.427, allocations: 4 kB / 0.6245 GB, free: 6.27 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.4271, allocations: 12 kB / 0.6245 GB, free: 6.258 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.943e-05/0.4271, allocations: 28.53 kB / 0.6245 GB, free: 6.23 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008961/0.428, allocations: 398.2 kB / 0.6249 GB, free: 5.84 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.003077/0.4311, allocations: 2.507 MB / 0.6274 GB, free: 3.152 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007872/0.4319, allocations: 343.4 kB / 0.6277 GB, free: 2.809 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.4323, allocations: 169.1 kB / 0.6278 GB, free: 2.641 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.4323, allocations: 4.281 kB / 0.6278 GB, free: 2.637 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005164/0.4329, allocations: 270.7 kB / 0.6281 GB, free: 2.352 MB / 462.1 MB Notification: Performance of pre-optimization done (n=34): time 1.543e-06/0.4329, allocations: 0 / 0.6281 GB, free: 2.352 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.01219/0.4451, allocations: 3.233 MB / 0.6313 GB, free: 15 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.865e-05/0.4452, allocations: 166.2 kB / 0.6314 GB, free: 14.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003773/0.4455, allocations: 389.4 kB / 0.6318 GB, free: 14.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.4456, allocations: 37.7 kB / 0.6318 GB, free: 14.36 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.4458, allocations: 256 kB / 0.6321 GB, free: 14.11 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.4459, allocations: 165.7 kB / 0.6322 GB, free: 13.94 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.4461, allocations: 126.2 kB / 0.6323 GB, free: 13.81 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4462, allocations: 354.8 kB / 0.6327 GB, free: 13.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006301/0.4468, allocations: 217.1 kB / 0.6329 GB, free: 13.25 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007169/0.4476, allocations: 406.3 kB / 0.6333 GB, free: 12.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.4489, allocations: 0.6355 MB / 0.6339 GB, free: 12.06 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4489, allocations: 8 kB / 0.6339 GB, free: 12.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001854/0.4507, allocations: 0.7869 MB / 0.6347 GB, free: 11.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.747e-05/0.4508, allocations: 37.69 kB / 0.6347 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.4508, allocations: 12.06 kB / 0.6347 GB, free: 11.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004129/0.4512, allocations: 108.8 kB / 0.6348 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005521/0.4518, allocations: 139.7 kB / 0.635 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005264/0.4523, allocations: 0.6772 MB / 0.6356 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000487/0.4528, allocations: 43.95 kB / 0.6357 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/0.4529, allocations: 44 kB / 0.6357 GB, free: 10.16 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.0002315/0.4531, allocations: 197.6 kB / 0.6359 GB, free: 9.953 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.503e-05/0.4532, allocations: 55.5 kB / 0.6359 GB, free: 9.898 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.4553, allocations: 0.7406 MB / 0.6367 GB, free: 9.145 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.4553, allocations: 4 kB / 0.6367 GB, free: 9.141 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4553, allocations: 0 / 0.6367 GB, free: 9.141 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4553, allocations: 7.938 kB / 0.6367 GB, free: 9.133 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.4578, allocations: 1.281 MB / 0.6379 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4578, allocations: 7.938 kB / 0.6379 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000484/0.4583, allocations: 108 kB / 0.638 GB, free: 7.664 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005773/0.4588, allocations: 100.7 kB / 0.6381 GB, free: 7.562 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.4589, allocations: 20 kB / 0.6382 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.4606, allocations: 1.821 MB / 0.6399 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.4606, allocations: 0 / 0.6399 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.4629, allocations: 0.9812 MB / 0.6409 GB, free: 4.562 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.4631, allocations: 160.5 kB / 0.641 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.433e-05/0.4632, allocations: 19.91 kB / 0.6411 GB, free: 4.367 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.4637, allocations: 43.94 kB / 0.6411 GB, free: 4.324 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.4638, allocations: 55.94 kB / 0.6412 GB, free: 4.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.4639, allocations: 35.98 kB / 0.6412 GB, free: 4.234 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000264/0.4641, allocations: 275.1 kB / 0.6415 GB, free: 3.973 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4641, allocations: 0 / 0.6415 GB, free: 3.973 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007407/0.4649, allocations: 235.9 kB / 0.6417 GB, free: 3.742 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.003108/0.468, allocations: 1.707 MB / 0.6434 GB, free: 2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.4696, allocations: 0.6296 MB / 0.644 GB, free: 1.359 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4696, allocations: 0 / 0.644 GB, free: 1.359 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008194/0.4704, allocations: 423.3 kB / 0.6444 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.4715, allocations: 211.9 kB / 0.6446 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007927/0.4794, allocations: 5.135 MB / 0.6496 GB, free: 11.35 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.4798, allocations: 0.8514 MB / 0.6504 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000651/0.4805, allocations: 152.6 kB / 0.6506 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.4808, allocations: 199.4 kB / 0.6508 GB, free: 10.12 MB / 494.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4808, allocations: 3.938 kB / 0.6508 GB, free: 10.12 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6497/1.131, allocations: 18.15 MB / 0.6685 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.96, allocations: 15.28 kB / 0.6685 GB, free: 8.203 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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