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.001255/0.001255, allocations: 107.1 kB / 16.27 MB, free: 6.41 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.001346/0.001346, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.409/1.409, allocations: 222.9 MB / 240.9 MB, free: 15.22 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.274/2.274, allocations: 390.3 MB / 0.6653 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 70.55 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3197, allocations: 140.4 MB / 0.9503 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00406/0.3238, allocations: 1.569 MB / 0.9518 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009357/0.3248, allocations: 443 kB / 0.9522 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.471e-05/0.3249, allocations: 0 / 0.9522 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/0.325, allocations: 3.938 kB / 0.9522 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.647e-05/0.3251, allocations: 7.922 kB / 0.9522 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.3254, allocations: 43.89 kB / 0.9523 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.3255, allocations: 63.84 kB / 0.9523 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.3256, allocations: 15.89 kB / 0.9524 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.3258, allocations: 35.91 kB / 0.9524 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.816e-05/0.3259, allocations: 31.84 kB / 0.9524 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.3259, allocations: 4 kB / 0.9524 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 2.166e-05/0.3259, allocations: 8 kB / 0.9524 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.326, allocations: 19.98 kB / 0.9525 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.672e-05/0.326, allocations: 35.84 kB / 0.9525 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.3262, allocations: 56.06 kB / 0.9525 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3262, allocations: 0 / 0.9525 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3262, allocations: 3.938 kB / 0.9525 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.3262, allocations: 0 / 0.9525 GB, free: 6.516 MB / 0.7325 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.000671/0.3269, allocations: 375.3 kB / 0.9529 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.3269, allocations: 8.031 kB / 0.9529 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.983e-05/0.327, allocations: 12.84 kB / 0.9529 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.3271, allocations: 176.3 kB / 0.9531 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.3272, allocations: 8.359 kB / 0.9531 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/0.3272, allocations: 4.375 kB / 0.9531 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.3275, allocations: 93.83 kB / 0.9532 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3275, allocations: 0 / 0.9532 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3275, allocations: 0 / 0.9532 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3275, allocations: 4 kB / 0.9532 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.3276, allocations: 39.97 kB / 0.9532 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006195/0.3283, allocations: 320.7 kB / 0.9535 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002873/0.3286, allocations: 106.6 kB / 0.9536 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.371e-05/0.3287, allocations: 40.84 kB / 0.9537 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.3287, allocations: 4 kB / 0.9537 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002883/0.329, allocations: 119.2 kB / 0.9538 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.724e-06/0.329, allocations: 4 kB / 0.9538 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004249/0.3294, allocations: 169.5 kB / 0.954 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.3295, allocations: 55.41 kB / 0.954 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.496e-05/0.3296, allocations: 114 kB / 0.9541 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.3296, allocations: 29.7 kB / 0.9542 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/0.3297, allocations: 100.2 kB / 0.9543 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.3297, allocations: 19.72 kB / 0.9543 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.3298, allocations: 29.7 kB / 0.9543 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3299, allocations: 322.8 kB / 0.9546 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.654e-05/0.33, allocations: 31.97 kB / 0.9546 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.451e-05/0.3301, allocations: 49.64 kB / 0.9547 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.3303, allocations: 65.64 kB / 0.9547 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3303, allocations: 4 kB / 0.9548 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002304/0.3305, allocations: 113.6 kB / 0.9549 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.3305, allocations: 8 kB / 0.9549 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3306, allocations: 0 / 0.9549 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3306, allocations: 0 / 0.9549 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.993e-05/0.3307, allocations: 23.92 kB / 0.9549 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3307, allocations: 0 / 0.9549 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.059e-05/0.3308, allocations: 11.94 kB / 0.9549 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.3308, allocations: 4 kB / 0.9549 GB, free: 3.859 MB / 0.7325 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.0001171/0.3309, allocations: 131.7 kB / 0.955 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.3309, allocations: 7.906 kB / 0.955 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.331, allocations: 12.38 kB / 0.9551 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.331, allocations: 4 kB / 0.9551 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.331, allocations: 4 kB / 0.9551 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.331, allocations: 0 / 0.9551 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.3312, allocations: 201.4 kB / 0.9553 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3312, allocations: 3.938 kB / 0.9553 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.3313, allocations: 12 kB / 0.9553 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3313, allocations: 0 / 0.9553 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.3313, allocations: 11.92 kB / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.3313, allocations: 0 / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3313, allocations: 0 / 0.9553 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003857/0.3317, allocations: 213.6 kB / 0.9555 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.017e-05/0.3318, allocations: 89.03 kB / 0.9556 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.3318, allocations: 4 kB / 0.9556 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.276e-05/0.3319, allocations: 7.984 kB / 0.9556 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.3319, allocations: 19.92 kB / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.332, allocations: 4 kB / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.985e-05/0.332, allocations: 87.27 kB / 0.9557 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.332, allocations: 4.062 kB / 0.9557 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002074/0.3322, allocations: 16 kB / 0.9557 GB, free: 2.953 MB / 0.7325 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.0001416/0.3324, allocations: 107.2 kB / 0.9558 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002709/0.3327, allocations: 107.8 kB / 0.9559 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3327, allocations: 0 / 0.9559 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.3328, allocations: 63.92 kB / 0.956 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.333, allocations: 19.92 kB / 0.956 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006298/0.3337, allocations: 283.2 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.334, allocations: 0.6922 MB / 0.9569 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.402e-05/0.334, allocations: 15.44 kB / 0.9569 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.334, allocations: 0 / 0.9569 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of Templates: time 0.003112/0.3372, allocations: 1.121 MB / 0.958 GB, free: 496 kB / 0.7325 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/jenkins1/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