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.007407/0.007407, allocations: 103.2 kB / 15.73 MB, free: 6.051 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.001799/0.001799, allocations: 191.2 kB / 16.67 MB, free: 5.98 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.4/2.4, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001212, allocations: 63.08 kB / 0.9509 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3178, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002684/0.3206, allocations: 1.554 MB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007833/0.3214, allocations: 448.4 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.797e-05/0.3214, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.221e-05/0.3215, allocations: 3.938 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.489e-05/0.3216, allocations: 3.938 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.3218, allocations: 39.89 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.3219, allocations: 71.78 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.322, allocations: 15.97 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.3221, allocations: 31.91 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.367e-05/0.3222, allocations: 31.91 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.3222, allocations: 4 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.727e-05/0.3223, allocations: 8 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.363e-05/0.3223, allocations: 19.91 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.495e-05/0.3224, allocations: 31.86 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.3225, allocations: 67.7 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3225, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3225, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3225, allocations: 0 / 1.09 GB, free: 15.16 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.0006712/0.3232, allocations: 375.4 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3233, allocations: 8.031 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.749e-05/0.3233, allocations: 16.78 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.3235, allocations: 172.2 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.3235, allocations: 4.375 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.3236, allocations: 12.36 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001975/0.3238, allocations: 89.88 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3238, allocations: 0 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.3238, allocations: 0 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3238, allocations: 4 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.3239, allocations: 39.97 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.3245, allocations: 320.7 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.3248, allocations: 106.6 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.116e-05/0.3249, allocations: 44.84 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.3249, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.3252, allocations: 119.4 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.3252, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003924/0.3256, allocations: 177.4 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.3256, allocations: 59.39 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.451e-05/0.3257, allocations: 121.7 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.3258, allocations: 25.7 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.3258, allocations: 88.38 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.3259, allocations: 27.64 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.071e-05/0.3259, allocations: 29.7 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3261, allocations: 322.8 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.556e-05/0.3261, allocations: 27.98 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.759e-05/0.3262, allocations: 56.31 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.3264, allocations: 61.64 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3264, allocations: 0 / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002015/0.3266, allocations: 113.5 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3266, allocations: 9.25 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.3266, allocations: 3.938 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3266, allocations: 0 / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.439e-05/0.3267, allocations: 12 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.3267, allocations: 4 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.3268, allocations: 15.89 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.3268, allocations: 4 kB / 1.093 GB, free: 12.5 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 0.0001081/0.3269, allocations: 121.8 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.327, allocations: 4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.327, allocations: 20.25 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.327, allocations: 4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.327, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.327, allocations: 4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.3272, allocations: 201.5 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3272, allocations: 3.984 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.172e-05/0.3273, allocations: 8 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3273, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.3273, allocations: 7.984 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3273, allocations: 0 / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3273, allocations: 0 / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.3277, allocations: 216.8 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.3277, allocations: 89.11 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.3278, allocations: 7.984 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.443e-05/0.3278, allocations: 4 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.441e-05/0.3279, allocations: 19.97 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.328, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.134e-05/0.328, allocations: 87.27 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.328, allocations: 0 / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002008/0.3282, allocations: 28 kB / 1.093 GB, free: 11.59 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.0001321/0.3284, allocations: 103.8 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002347/0.3286, allocations: 96.44 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3286, allocations: 0 / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.3287, allocations: 67.97 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.3289, allocations: 16.42 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004839/0.3294, allocations: 253.5 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.3297, allocations: 0.6885 MB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.523e-05/0.3297, allocations: 16.73 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.717e-05/0.3298, allocations: 11.44 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3298, allocations: 0 / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of Templates: time 0.003452/0.3333, allocations: 1.085 MB / 1.096 GB, free: 9.215 MB / 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