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.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.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.002059/0.002059, allocations: 108 kB / 15.61 MB, free: 152 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.00133/0.00133, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.418/2.418, allocations: 390.2 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.89 kB / 0.8125 GB, free: 14.44 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7536/0.755, allocations: 140.4 MB / 0.9496 GB, free: 9.391 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003126/0.7581, allocations: 1.561 MB / 0.9511 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009058/0.7591, allocations: 445.3 kB / 0.9515 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.882e-05/0.7591, allocations: 1.156 kB / 0.9515 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.7592, allocations: 3.938 kB / 0.9516 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.705e-05/0.7593, allocations: 5.156 kB / 0.9516 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.7595, allocations: 41.11 kB / 0.9516 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.7596, allocations: 64.59 kB / 0.9517 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.7597, allocations: 18.62 kB / 0.9517 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.7599, allocations: 32.22 kB / 0.9517 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.752e-05/0.7599, allocations: 32.72 kB / 0.9517 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.76, allocations: 6.281 kB / 0.9517 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.018e-05/0.76, allocations: 6.906 kB / 0.9517 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.76, allocations: 14.52 kB / 0.9518 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.571e-05/0.7601, allocations: 39.22 kB / 0.9518 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.7602, allocations: 56.5 kB / 0.9519 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.7602, allocations: 0 / 0.9519 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7602, allocations: 1.406 kB / 0.9519 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.7602, allocations: 0 / 0.9519 GB, free: 7.602 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.0005545/0.7608, allocations: 380.7 kB / 0.9522 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.7609, allocations: 10.53 kB / 0.9522 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.7609, allocations: 12.81 kB / 0.9522 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.784e-05/0.761, allocations: 178.5 kB / 0.9524 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.761, allocations: 6.812 kB / 0.9524 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.7611, allocations: 5.562 kB / 0.9524 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.7613, allocations: 89.66 kB / 0.9525 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.7613, allocations: 4.969 kB / 0.9525 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.7613, allocations: 1.125 kB / 0.9525 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.7613, allocations: 1.125 kB / 0.9525 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.7615, allocations: 42.31 kB / 0.9526 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005147/0.762, allocations: 325.5 kB / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.7623, allocations: 107.2 kB / 0.953 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.7624, allocations: 45.17 kB / 0.953 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.7624, allocations: 1.562 kB / 0.953 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.7627, allocations: 112.5 kB / 0.9531 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.7627, allocations: 3.938 kB / 0.9531 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004004/0.7631, allocations: 176 kB / 0.9533 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.7632, allocations: 53.16 kB / 0.9533 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.554e-05/0.7632, allocations: 112.8 kB / 0.9535 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.7633, allocations: 30.89 kB / 0.9535 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.569e-05/0.7633, allocations: 85.62 kB / 0.9536 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.487e-05/0.7633, allocations: 35.84 kB / 0.9536 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.7634, allocations: 26.16 kB / 0.9536 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.7635, allocations: 325.6 kB / 0.9539 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.159e-05/0.7635, allocations: 27.73 kB / 0.954 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.041e-05/0.7636, allocations: 49.88 kB / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.7638, allocations: 72.36 kB / 0.9541 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7638, allocations: 0 / 0.9541 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001958/0.764, allocations: 106.6 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.764, allocations: 4.281 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.764, allocations: 1.031 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.764, allocations: 0.9688 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.587e-05/0.7641, allocations: 18.08 kB / 0.9542 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.7641, allocations: 5.094 kB / 0.9542 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.7642, allocations: 11.77 kB / 0.9542 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.7642, allocations: 3.656 kB / 0.9542 GB, free: 5.414 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.287e-05/0.7643, allocations: 120.5 kB / 0.9543 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.7643, allocations: 12.81 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.7644, allocations: 17.83 kB / 0.9544 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7644, allocations: 5.375 kB / 0.9544 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.7644, allocations: 0 / 0.9544 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.7644, allocations: 4 kB / 0.9544 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.7645, allocations: 194.9 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.7645, allocations: 0 / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.635e-05/0.7646, allocations: 14.52 kB / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.7646, allocations: 0.9688 kB / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.7646, allocations: 6.031 kB / 0.9546 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.7646, allocations: 1.25 kB / 0.9546 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.7646, allocations: 0 / 0.9546 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003616/0.765, allocations: 227.2 kB / 0.9548 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.633e-05/0.765, allocations: 83.83 kB / 0.9549 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.7651, allocations: 6.375 kB / 0.9549 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.009e-05/0.7651, allocations: 11.7 kB / 0.9549 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.7652, allocations: 13.12 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.7652, allocations: 7.75 kB / 0.9549 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.214e-05/0.7653, allocations: 89.53 kB / 0.955 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7653, allocations: 1.438 kB / 0.955 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002044/0.7655, allocations: 22.2 kB / 0.955 GB, free: 4.664 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.0001222/0.7656, allocations: 104 kB / 0.9551 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002533/0.7659, allocations: 96.67 kB / 0.9552 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7659, allocations: 0 / 0.9552 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.766, allocations: 72.17 kB / 0.9553 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.7662, allocations: 15.84 kB / 0.9553 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.7668, allocations: 254.8 kB / 0.9555 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.7669, allocations: 0.6947 MB / 0.9562 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.925e-05/0.767, allocations: 8.25 kB / 0.9562 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.767, allocations: 12.44 kB / 0.9562 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of SimCode: time 1.91e-07/0.767, allocations: 4 kB / 0.9562 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of Templates: time 0.003576/0.7706, allocations: 1.068 MB / 0.9573 GB, free: 3.016 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/jenkins/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