Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009719/0.0009721, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.007848/0.007848, allocations: 168.5 kB / 16.26 MB, free: 6.652 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.398/1.398, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.492/2.492, allocations: 390.9 MB / 0.6663 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 12 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7146/0.715, allocations: 142.4 MB / 0.955 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01563/0.7306, allocations: 13.9 MB / 0.9686 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005645/0.7363, allocations: 3.619 MB / 0.9721 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006739/0.737, allocations: 17.94 kB / 0.9722 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000704/0.7377, allocations: 165.1 kB / 0.9723 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002182/0.7399, allocations: 0.541 MB / 0.9728 GB, free: 8.922 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.7415, allocations: 354 kB / 0.9732 GB, free: 8.66 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002708/0.7443, allocations: 1.453 MB / 0.9746 GB, free: 7.859 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005963/0.7449, allocations: 262.6 kB / 0.9748 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007182/0.7456, allocations: 310.4 kB / 0.9751 GB, free: 7.535 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004597/0.7461, allocations: 299.8 kB / 0.9754 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.328e-05/0.7461, allocations: 16.62 kB / 0.9754 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007302/0.7469, allocations: 245.4 kB / 0.9757 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.747, allocations: 71.45 kB / 0.9757 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002524/0.7472, allocations: 217 kB / 0.976 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007505/0.748, allocations: 0.5621 MB / 0.9765 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.748, allocations: 4.844 kB / 0.9765 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.693e-06/0.748, allocations: 0 / 0.9765 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.748, allocations: 0 / 0.9765 GB, free: 6.656 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001202/0.7493, allocations: 0.6787 MB / 0.9772 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.7493, allocations: 8.688 kB / 0.9772 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.7495, allocations: 46.03 kB / 0.9772 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007773/0.7503, allocations: 477.5 kB / 0.9777 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.7503, allocations: 23.5 kB / 0.9777 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.646e-05/0.7504, allocations: 25.75 kB / 0.9777 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.7511, allocations: 317.9 kB / 0.978 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.7511, allocations: 0.875 kB / 0.978 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.7511, allocations: 14.84 kB / 0.978 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.7512, allocations: 11.58 kB / 0.9781 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.7517, allocations: 204.4 kB / 0.9782 GB, free: 5.266 MB / 0.7325 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.001921/0.7536, allocations: 1.491 MB / 0.9797 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004869/0.7541, allocations: 171.9 kB / 0.9799 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.7543, allocations: 71.02 kB / 0.9799 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.7545, allocations: 91.97 kB / 0.98 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.7548, allocations: 130.9 kB / 0.9801 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.7548, allocations: 0 / 0.9801 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0007298/0.7556, allocations: 254.9 kB / 0.9804 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.7556, allocations: 53.44 kB / 0.9804 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.756, allocations: 342.6 kB / 0.9808 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.7561, allocations: 28.17 kB / 0.9808 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.7563, allocations: 220.4 kB / 0.981 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.7563, allocations: 51.02 kB / 0.9811 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.7564, allocations: 29.14 kB / 0.9811 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.7565, allocations: 341.8 kB / 0.9814 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002249/0.7568, allocations: 74.52 kB / 0.9815 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.757, allocations: 152.4 kB / 0.9816 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004726/0.7575, allocations: 259.2 kB / 0.9819 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7575, allocations: 0 / 0.9819 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006366/0.7582, allocations: 320.2 kB / 0.9822 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.7582, allocations: 40.38 kB / 0.9822 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.7582, allocations: 2.594 kB / 0.9822 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.7583, allocations: 8.094 kB / 0.9822 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.7585, allocations: 64.72 kB / 0.9823 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.7585, allocations: 4.125 kB / 0.9823 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.7589, allocations: 40.73 kB / 0.9823 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.7589, allocations: 14.53 kB / 0.9823 GB, free: 1.863 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.7591, allocations: 156.8 kB / 0.9825 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-05/0.7592, allocations: 40.66 kB / 0.9825 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005226/0.7597, allocations: 209.5 kB / 0.9827 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.7597, allocations: 5.531 kB / 0.9827 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.7597, allocations: 0 / 0.9827 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005485/0.7603, allocations: 496.2 kB / 0.9832 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005008/0.7608, allocations: 353.9 kB / 0.9836 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.7608, allocations: 3.984 kB / 0.9836 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.761, allocations: 34.48 kB / 0.9836 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.761, allocations: 3.938 kB / 0.9836 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.761, allocations: 6.719 kB / 0.9836 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.761, allocations: 3.938 kB / 0.9836 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.761, allocations: 0 / 0.9836 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.7617, allocations: 301.2 kB / 0.9839 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.7619, allocations: 126.8 kB / 0.984 GB, free: 436 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.7619, allocations: 5.203 kB / 0.984 GB, free: 432 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.7622, allocations: 27.77 kB / 0.984 GB, free: 416 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.925e-05/0.7623, allocations: 19.59 kB / 0.9841 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.7623, allocations: 5 kB / 0.9841 GB, free: 404 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000253/0.7626, allocations: 241.7 kB / 0.9843 GB, free: 244 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7626, allocations: 0 / 0.9843 GB, free: 244 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004996/0.7631, allocations: 122.8 kB / 0.9844 GB, free: 212 kB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003896/0.7635, allocations: 185 kB / 0.9846 GB, free: 80 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005683/0.764, allocations: 234.2 kB / 0.9848 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7641, allocations: 0 / 0.9848 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.7643, allocations: 77.89 kB / 0.9849 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.7654, allocations: 199.5 kB / 0.9851 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.7669, allocations: 0.9297 MB / 0.986 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.7673, allocations: 0.7921 MB / 0.9868 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002846/0.7676, allocations: 71.17 kB / 0.9868 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.603e-05/0.7677, allocations: 39.42 kB / 0.9869 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of SimCode: time 3.71e-07/0.7677, allocations: 0 / 0.9869 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of Templates: time 0.01263/0.7803, allocations: 6.531 MB / 0.9932 GB, free: 7.57 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches