Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006761/0.00676, allocations: 100.3 kB / 15.73 MB, free: 6.059 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.001551/0.001551, allocations: 192 kB / 16.67 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.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 64.09 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3819, allocations: 151.6 MB / 1.167 GB, free: 6.789 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002661/0.3846, allocations: 1.566 MB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007388/0.3854, allocations: 447 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.347e-05/0.3854, allocations: 4 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.482e-05/0.3855, allocations: 7.922 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.676e-05/0.3856, allocations: 7.922 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.3858, allocations: 27.91 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.3859, allocations: 71.84 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.809e-05/0.386, allocations: 19.97 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.231e-05/0.3861, allocations: 27.92 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.09e-05/0.3862, allocations: 31.84 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.3862, allocations: 11.94 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.808e-05/0.3862, allocations: 8 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.3863, allocations: 15.97 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.774e-05/0.3863, allocations: 27.86 kB / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.3865, allocations: 67.72 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3865, allocations: 3.938 kB / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3865, allocations: 0 / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.3865, allocations: 3.984 kB / 1.169 GB, free: 4.43 MB / 0.92 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.0006008/0.3871, allocations: 375.3 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3871, allocations: 8.031 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.3872, allocations: 12.88 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.3873, allocations: 172.3 kB / 1.169 GB, free: 3.789 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.3873, allocations: 4.375 kB / 1.169 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.3874, allocations: 12.38 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.3876, allocations: 89.88 kB / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.3876, allocations: 0 / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.3876, allocations: 0 / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3876, allocations: 0 / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.3877, allocations: 43.97 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.3883, allocations: 320.7 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.3886, allocations: 94.55 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.229e-05/0.3887, allocations: 48.83 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.3887, allocations: 4 kB / 1.17 GB, free: 3.117 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.3889, allocations: 123.4 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.389, allocations: 0 / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0003857/0.3893, allocations: 170 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.3894, allocations: 51.41 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.94e-05/0.3895, allocations: 121.8 kB / 1.17 GB, free: 2.621 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.3895, allocations: 25.7 kB / 1.171 GB, free: 2.59 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.3895, allocations: 92.38 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.3896, allocations: 31.73 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.3896, allocations: 25.72 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3898, allocations: 322.8 kB / 1.171 GB, free: 2.109 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.801e-05/0.3898, allocations: 27.98 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.15e-05/0.3899, allocations: 53.62 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.3901, allocations: 73.69 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3901, allocations: 0 / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001978/0.3903, allocations: 109.6 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3903, allocations: 4 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3903, allocations: 11.98 kB / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3904, allocations: 3.984 kB / 1.171 GB, free: 1.812 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.116e-05/0.3904, allocations: 15.94 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3904, allocations: 0 / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.641e-05/0.3905, allocations: 15.98 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-06/0.3905, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 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.332e-05/0.3906, allocations: 129.7 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/0.3907, allocations: 11.89 kB / 1.171 GB, free: 1.633 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.3907, allocations: 12.36 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3907, allocations: 0 / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3907, allocations: 4 kB / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3907, allocations: 0 / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.3909, allocations: 201.5 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3909, allocations: 4 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.385e-05/0.391, allocations: 11.98 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.391, allocations: 0 / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.391, allocations: 0 / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.391, allocations: 4 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.391, allocations: 0 / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003752/0.3914, allocations: 220.8 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.3914, allocations: 85.16 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.3915, allocations: 8 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.747e-05/0.3915, allocations: 7.984 kB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.814e-05/0.3916, allocations: 15.97 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.3916, allocations: 4 kB / 1.172 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.994e-05/0.3917, allocations: 91.27 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3917, allocations: 0 / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003196/0.392, allocations: 20 kB / 1.172 GB, free: 0.8711 MB / 0.92 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.0001294/0.3921, allocations: 107.2 kB / 1.172 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.3924, allocations: 91.83 kB / 1.172 GB, free: 0.668 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3924, allocations: 0 / 1.172 GB, free: 0.668 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.3925, allocations: 67.91 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.3927, allocations: 15.98 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004689/0.3932, allocations: 265.7 kB / 1.173 GB, free: 308 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.3934, allocations: 0.6885 MB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.667e-05/0.3935, allocations: 12.66 kB / 1.173 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.3935, allocations: 11.44 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.3935, allocations: 0 / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of Templates: time 0.003375/0.3969, allocations: 1.093 MB / 1.174 GB, free: 14.48 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches