Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001128, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 196 kB / 16.79 MB, free: 6.809 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.356/1.356, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 63.89 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7223/0.7239, allocations: 140.4 MB / 0.9496 GB, free: 9.258 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00274/0.7266, allocations: 1.62 MB / 0.9512 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006213/0.7273, allocations: 443 kB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.009e-05/0.7273, allocations: 0 / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.7274, allocations: 7.922 kB / 0.9516 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.988e-05/0.7275, allocations: 10.41 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.7277, allocations: 24.88 kB / 0.9517 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.692e-05/0.7278, allocations: 64.91 kB / 0.9517 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.7279, allocations: 16.59 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.562e-05/0.728, allocations: 32.84 kB / 0.9518 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.204e-05/0.7281, allocations: 32.81 kB / 0.9518 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.7281, allocations: 4.344 kB / 0.9518 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.651e-05/0.7281, allocations: 2.969 kB / 0.9518 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.7282, allocations: 10.61 kB / 0.9518 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.879e-05/0.7282, allocations: 32.66 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.328e-05/0.7283, allocations: 41.14 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.7283, allocations: 3.938 kB / 0.9519 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.52e-07/0.7283, allocations: 0 / 0.9519 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.7283, allocations: 1.375 kB / 0.9519 GB, free: 7.457 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005378/0.7289, allocations: 380.8 kB / 0.9522 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.7289, allocations: 8.594 kB / 0.9523 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.956e-05/0.729, allocations: 10 kB / 0.9523 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.684e-05/0.729, allocations: 174.5 kB / 0.9524 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.7291, allocations: 3.656 kB / 0.9524 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.7291, allocations: 13.33 kB / 0.9524 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.7293, allocations: 89.83 kB / 0.9525 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.7293, allocations: 0 / 0.9525 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.7293, allocations: 1.281 kB / 0.9525 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.7293, allocations: 4.969 kB / 0.9525 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.7295, allocations: 43.84 kB / 0.9526 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004825/0.7299, allocations: 319.8 kB / 0.9529 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.7302, allocations: 107.4 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.73e-05/0.7303, allocations: 45.38 kB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.7303, allocations: 5.234 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.7306, allocations: 109.3 kB / 0.9531 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.492e-06/0.7306, allocations: 0 / 0.9531 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003793/0.7309, allocations: 183.7 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.731, allocations: 52.75 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.026e-05/0.7311, allocations: 107.9 kB / 0.9535 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.7311, allocations: 31.2 kB / 0.9535 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.492e-05/0.7311, allocations: 91.14 kB / 0.9536 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.7311, allocations: 31.98 kB / 0.9536 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.7312, allocations: 29.67 kB / 0.9536 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.7313, allocations: 324.4 kB / 0.954 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.467e-05/0.7313, allocations: 28.92 kB / 0.954 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.482e-05/0.7314, allocations: 48.91 kB / 0.954 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.7316, allocations: 64.8 kB / 0.9541 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7316, allocations: 0 / 0.9541 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001906/0.7318, allocations: 113.6 kB / 0.9542 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.7318, allocations: 9.219 kB / 0.9542 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.7318, allocations: 1.188 kB / 0.9542 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.7318, allocations: 1.125 kB / 0.9542 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.424e-05/0.7319, allocations: 12.66 kB / 0.9542 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.7319, allocations: 5.047 kB / 0.9542 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.732, allocations: 8.562 kB / 0.9542 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.732, allocations: 3.125 kB / 0.9542 GB, free: 5.277 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 7.142e-05/0.7321, allocations: 123.5 kB / 0.9544 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.7321, allocations: 12.19 kB / 0.9544 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.7321, allocations: 13.59 kB / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.7321, allocations: 1.031 kB / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7321, allocations: 1.156 kB / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.7322, allocations: 0 / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.7323, allocations: 210.2 kB / 0.9546 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.7323, allocations: 0 / 0.9546 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.36e-05/0.7324, allocations: 6.938 kB / 0.9546 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.7324, allocations: 1.312 kB / 0.9546 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.7324, allocations: 5.297 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.7324, allocations: 9.125 kB / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.7324, allocations: 0 / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003494/0.7328, allocations: 214.1 kB / 0.9548 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.7328, allocations: 83.67 kB / 0.9549 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.7328, allocations: 10.14 kB / 0.9549 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.07e-05/0.7329, allocations: 3.469 kB / 0.9549 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.733, allocations: 25.97 kB / 0.9549 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.733, allocations: 4.219 kB / 0.9549 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.089e-05/0.733, allocations: 90.14 kB / 0.955 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.733, allocations: 0 / 0.955 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001961/0.7332, allocations: 19.53 kB / 0.955 GB, free: 4.531 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0001203/0.7333, allocations: 106.2 kB / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.7336, allocations: 96.52 kB / 0.9552 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.7336, allocations: 4 kB / 0.9552 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.7337, allocations: 64.5 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.7339, allocations: 13.89 kB / 0.9553 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004867/0.7344, allocations: 297.7 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.7346, allocations: 0.6907 MB / 0.9563 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.7346, allocations: 11.09 kB / 0.9563 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.7346, allocations: 1.312 kB / 0.9563 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of Templates: time 0.002559/0.7372, allocations: 1.127 MB / 0.9574 GB, free: 2.809 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches