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.005493/0.005493, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.001219/0.00122, allocations: 195.3 kB / 16.68 MB, free: 5.969 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.214/2.214, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.91 kB / 0.9509 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8509/0.8522, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00288/0.8551, allocations: 1.583 MB / 1.089 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007113/0.8558, allocations: 443.8 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.708e-05/0.8559, allocations: 1 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.293e-05/0.8559, allocations: 4.734 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.068e-05/0.856, allocations: 11.48 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.8562, allocations: 36.5 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.8564, allocations: 65.78 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.8565, allocations: 12.38 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.8566, allocations: 37.03 kB / 1.09 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.431e-05/0.8567, allocations: 32.09 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.8567, allocations: 6.469 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.694e-05/0.8568, allocations: 7.281 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.386e-05/0.8568, allocations: 17.83 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.742e-05/0.8569, allocations: 30.86 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.857, allocations: 63.23 kB / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.857, allocations: 0 / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.573e-06/0.857, allocations: 0 / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.857, allocations: 0 / 1.09 GB, free: 3.953 MB / 0.8575 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.0005727/0.8576, allocations: 376.8 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.8577, allocations: 9.469 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.746e-05/0.8577, allocations: 10.58 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.685e-05/0.8578, allocations: 172.3 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.8578, allocations: 8.375 kB / 1.091 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.8579, allocations: 13.53 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.8581, allocations: 82.77 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.8581, allocations: 1.062 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.8581, allocations: 6.188 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.8581, allocations: 1.094 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.8583, allocations: 42.89 kB / 1.091 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005474/0.8588, allocations: 328.6 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.8592, allocations: 97.48 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.948e-05/0.8593, allocations: 46.55 kB / 1.091 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.8593, allocations: 0.8125 kB / 1.091 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.8595, allocations: 120.3 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.512e-06/0.8596, allocations: 0 / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004131/0.86, allocations: 167.9 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.86, allocations: 54.92 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.067e-05/0.8601, allocations: 115.3 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.8601, allocations: 27.17 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.702e-05/0.8601, allocations: 88 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.8602, allocations: 34.73 kB / 1.092 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.967e-05/0.8602, allocations: 28.39 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.666e-05/0.8603, allocations: 324.2 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.25e-05/0.8604, allocations: 27.89 kB / 1.092 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.214e-05/0.8605, allocations: 55.67 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.8606, allocations: 61.44 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.8606, allocations: 0.7812 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002111/0.8609, allocations: 111.2 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.8609, allocations: 5.156 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.8609, allocations: 1.234 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.8609, allocations: 1.344 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.731e-05/0.861, allocations: 15.45 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.861, allocations: 9.594 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.661e-05/0.8611, allocations: 18.75 kB / 1.093 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.8611, allocations: 3.75 kB / 1.093 GB, free: 1.949 MB / 0.8575 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.193e-05/0.8612, allocations: 127.7 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.824e-05/0.8612, allocations: 5.812 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.8613, allocations: 10.11 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.8613, allocations: 1.844 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.8613, allocations: 8.734 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.8613, allocations: 1.547 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.8614, allocations: 199.3 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.8614, allocations: 0.6094 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.8615, allocations: 9.672 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8615, allocations: 0 / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.8615, allocations: 3.797 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8616, allocations: 0 / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8616, allocations: 1.75 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.862, allocations: 228.1 kB / 1.093 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.138e-05/0.862, allocations: 79.61 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.862, allocations: 7.938 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.85e-05/0.8621, allocations: 7.422 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.973e-05/0.8622, allocations: 15.45 kB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.8622, allocations: 10.5 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.693e-05/0.8623, allocations: 91.19 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8623, allocations: 4.062 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002324/0.8625, allocations: 23.58 kB / 1.093 GB, free: 1.258 MB / 0.8575 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.0002054/0.8627, allocations: 101.9 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003569/0.8631, allocations: 95.89 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.8631, allocations: 0 / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.8633, allocations: 75.28 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.8635, allocations: 20.94 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006235/0.8642, allocations: 248.6 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.8644, allocations: 0.6927 MB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.252e-05/0.8644, allocations: 11.22 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.363e-05/0.8645, allocations: 12.77 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of SimCode: time 2.043e-06/0.8645, allocations: 0 / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of Templates: time 0.004232/0.8687, allocations: 1.072 MB / 1.096 GB, free: 108 kB / 0.8575 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