Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001428/0.001428, allocations: 111.2 kB / 16.42 MB, free: 6.461 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.00161/0.00161, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.354/1.354, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.576/2.576, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.91 kB / 1.055 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7675/0.7688, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002676/0.7715, allocations: 1.568 MB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.7723, allocations: 443 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.846e-05/0.7723, allocations: 4 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.973e-05/0.7724, allocations: 7.922 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.972e-05/0.7724, allocations: 7.922 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.7726, allocations: 27.91 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.7728, allocations: 71.83 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.352e-05/0.7729, allocations: 11.98 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.524e-05/0.773, allocations: 35.92 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.509e-05/0.773, allocations: 39.83 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.7731, allocations: 4 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.562e-05/0.7731, allocations: 11.94 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.335e-05/0.7731, allocations: 11.98 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.855e-05/0.7732, allocations: 31.86 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.7733, allocations: 55.78 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7733, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.192e-06/0.7733, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.137e-06/0.7733, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.9356 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.0005296/0.7738, allocations: 385 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.7739, allocations: 8.031 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.7739, allocations: 4.938 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.774, allocations: 180.2 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.7741, allocations: 8.375 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.7741, allocations: 8.375 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.7743, allocations: 85.89 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.7743, allocations: 7.984 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.7743, allocations: 0 / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.7743, allocations: 4 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.7745, allocations: 39.97 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.775, allocations: 320.6 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.7753, allocations: 106.5 kB / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.203e-05/0.7754, allocations: 48.83 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.7754, allocations: 0 / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.7757, allocations: 111.3 kB / 1.212 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.7757, allocations: 0 / 1.212 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.000364/0.776, allocations: 177.6 kB / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.7761, allocations: 51.41 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.657e-05/0.7762, allocations: 117.8 kB / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.7762, allocations: 29.64 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.79e-05/0.7762, allocations: 88.38 kB / 1.212 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.7763, allocations: 31.55 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.7763, allocations: 25.72 kB / 1.212 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.7764, allocations: 326.8 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.288e-05/0.7765, allocations: 31.98 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.59e-05/0.7766, allocations: 49.69 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.7768, allocations: 61.64 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.7768, allocations: 0 / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000214/0.777, allocations: 110 kB / 1.213 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.777, allocations: 12 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.777, allocations: 3.938 kB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.777, allocations: 0 / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.033e-05/0.7771, allocations: 11.98 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.7771, allocations: 4 kB / 1.213 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.678e-05/0.7772, allocations: 11.98 kB / 1.213 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.7773, allocations: 4 kB / 1.213 GB, free: 8.621 MB / 0.9356 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 9.255e-05/0.7773, allocations: 121.7 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.068e-05/0.7774, allocations: 15.91 kB / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/0.7774, allocations: 16.3 kB / 1.213 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.7774, allocations: 4.031 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.7774, allocations: 0 / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.569e-05/0.7775, allocations: 85.05 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.7775, allocations: 4 kB / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.194e-05/0.7776, allocations: 15.92 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.7776, allocations: 7.984 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003666/0.778, allocations: 237 kB / 1.214 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004198/0.7784, allocations: 362.6 kB / 1.214 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001087/0.7786, allocations: 60 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.7786, allocations: 87.28 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of Backend: time 4.51e-07/0.7786, allocations: 0 / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000455/0.7791, allocations: 144.2 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005895/0.7797, allocations: 0.6776 MB / 1.215 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of Templates: time 0.003457/0.7832, allocations: 1.183 MB / 1.216 GB, free: 5.52 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches