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.001519/0.001519, allocations: 110.1 kB / 16.41 MB, free: 6.496 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.001217/0.001217, allocations: 183.1 kB / 17.34 MB, free: 5.762 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.701/2.701, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 68.11 kB / 1.055 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9776/0.979, allocations: 157.4 MB / 1.208 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003623/0.9827, allocations: 1.568 MB / 1.21 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.9837, allocations: 439 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.605e-05/0.9838, allocations: 0 / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.366e-05/0.9839, allocations: 7.922 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.823e-05/0.984, allocations: 15.88 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/0.9843, allocations: 27.95 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.9845, allocations: 67.78 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.9846, allocations: 11.98 kB / 1.211 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.9847, allocations: 39.84 kB / 1.211 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.9848, allocations: 27.91 kB / 1.211 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.9849, allocations: 8 kB / 1.211 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.626e-05/0.9849, allocations: 8 kB / 1.211 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.5e-05/0.985, allocations: 23.91 kB / 1.211 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.818e-05/0.985, allocations: 31.86 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.9852, allocations: 59.84 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.9852, allocations: 0 / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9852, allocations: 0 / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.9852, allocations: 0 / 1.211 GB, free: 11.46 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.0007092/0.9859, allocations: 373.1 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.986, allocations: 16.03 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.901e-05/0.986, allocations: 8.922 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.9862, allocations: 172.2 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.9862, allocations: 8.375 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.9863, allocations: 8.375 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.9865, allocations: 93.88 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.9865, allocations: 0 / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.9865, allocations: 7.938 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.9866, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.9867, allocations: 47.97 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006902/0.9874, allocations: 316.6 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.9877, allocations: 102.5 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.9879, allocations: 44.83 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.9879, allocations: 4 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.9882, allocations: 115.5 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.734e-06/0.9882, allocations: 0 / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004407/0.9887, allocations: 177.4 kB / 1.212 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.9887, allocations: 63.39 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.392e-05/0.9888, allocations: 109.8 kB / 1.212 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.9889, allocations: 33.7 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.176e-05/0.9889, allocations: 84.38 kB / 1.212 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.989, allocations: 31.55 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.079e-05/0.989, allocations: 25.72 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.9892, allocations: 326.8 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.314e-05/0.9893, allocations: 31.92 kB / 1.213 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.092e-05/0.9894, allocations: 49.69 kB / 1.213 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.9895, allocations: 65.7 kB / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.9895, allocations: 0 / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002162/0.9897, allocations: 113.5 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.9898, allocations: 5.875 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.9898, allocations: 0 / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.9898, allocations: 4 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.654e-05/0.9899, allocations: 15.98 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.9899, allocations: 0 / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.074e-05/0.99, allocations: 11.98 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.99, allocations: 7.938 kB / 1.213 GB, free: 8.809 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 0.0001281/0.9902, allocations: 117.8 kB / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.9902, allocations: 7.906 kB / 1.213 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.9902, allocations: 20.36 kB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.9902, allocations: 0 / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.9903, allocations: 4 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.9903, allocations: 3.938 kB / 1.213 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.9906, allocations: 197.5 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.9906, allocations: 0 / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.191e-05/0.9907, allocations: 15.98 kB / 1.213 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.9907, allocations: 4 kB / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.9907, allocations: 0 / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.9907, allocations: 0 / 1.213 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.9907, allocations: 4 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004017/0.9911, allocations: 228.8 kB / 1.214 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.9912, allocations: 81.02 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.9912, allocations: 8 kB / 1.214 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.332e-05/0.9913, allocations: 7.984 kB / 1.214 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.9914, allocations: 15.97 kB / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.9914, allocations: 4 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.592e-05/0.9914, allocations: 91.27 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9914, allocations: 4.062 kB / 1.214 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002087/0.9917, allocations: 16 kB / 1.214 GB, free: 7.895 MB / 0.9356 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.0001528/0.9918, allocations: 103.2 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002448/0.9921, allocations: 96.48 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9921, allocations: 0 / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.9922, allocations: 68.12 kB / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.9924, allocations: 16.2 kB / 1.214 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005761/0.993, allocations: 275.2 kB / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.9935, allocations: 0.6963 MB / 1.215 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.148e-05/0.9935, allocations: 19.38 kB / 1.215 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of SimCode: time 3.11e-07/0.9935, allocations: 0 / 1.215 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of Templates: time 0.003232/0.9968, allocations: 1.137 MB / 1.216 GB, free: 5.434 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