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.001204/0.001204, allocations: 106.5 kB / 15.99 MB, free: 6.359 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.001215/0.001215, allocations: 192.5 kB / 16.91 MB, free: 6.195 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.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 15.39 MB / 206.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.534/2.534, allocations: 437 MB / 0.7107 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 63.58 kB / 0.8694 GB, free: 2.559 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3245, allocations: 151.6 MB / 1.017 GB, free: 10.99 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003225/0.3278, allocations: 1.622 MB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000777/0.3286, allocations: 446.9 kB / 1.019 GB, free: 8.91 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.756e-05/0.3287, allocations: 0 / 1.019 GB, free: 8.91 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.743e-05/0.3288, allocations: 3.938 kB / 1.019 GB, free: 8.906 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.349e-05/0.3288, allocations: 11.92 kB / 1.02 GB, free: 8.895 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.3291, allocations: 27.91 kB / 1.02 GB, free: 8.867 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3292, allocations: 67.78 kB / 1.02 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.3293, allocations: 19.98 kB / 1.02 GB, free: 8.781 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.3295, allocations: 27.92 kB / 1.02 GB, free: 8.754 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.433e-05/0.3295, allocations: 27.91 kB / 1.02 GB, free: 8.727 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.3296, allocations: 8 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.465e-05/0.3296, allocations: 4 kB / 1.02 GB, free: 8.715 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.3296, allocations: 23.91 kB / 1.02 GB, free: 8.691 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.414e-05/0.3297, allocations: 27.86 kB / 1.02 GB, free: 8.664 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.3298, allocations: 52.19 kB / 1.02 GB, free: 8.613 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3298, allocations: 0 / 1.02 GB, free: 8.613 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3298, allocations: 4 kB / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3298, allocations: 0 / 1.02 GB, free: 8.609 MB / 0.795 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.0005634/0.3304, allocations: 371.3 kB / 1.02 GB, free: 8.199 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3304, allocations: 8.922 kB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.3305, allocations: 8.844 kB / 1.02 GB, free: 8.184 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.3306, allocations: 176.2 kB / 1.02 GB, free: 7.973 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.3307, allocations: 4.375 kB / 1.02 GB, free: 7.969 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.3307, allocations: 8.375 kB / 1.02 GB, free: 7.961 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.3309, allocations: 85.95 kB / 1.02 GB, free: 7.871 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3309, allocations: 0 / 1.02 GB, free: 7.871 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.3309, allocations: 3.984 kB / 1.02 GB, free: 7.867 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.331, allocations: 4 kB / 1.02 GB, free: 7.863 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.3311, allocations: 43.91 kB / 1.02 GB, free: 7.82 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005777/0.3317, allocations: 320.7 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.332, allocations: 98.55 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3321, allocations: 48.83 kB / 1.021 GB, free: 7.301 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.3321, allocations: 3.984 kB / 1.021 GB, free: 7.297 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.3324, allocations: 119.2 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.3324, allocations: 0 / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0003755/0.3328, allocations: 165.6 kB / 1.021 GB, free: 7 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.3329, allocations: 55.39 kB / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.011e-05/0.3329, allocations: 118 kB / 1.021 GB, free: 6.809 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.333, allocations: 25.7 kB / 1.021 GB, free: 6.777 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.333, allocations: 108.1 kB / 1.021 GB, free: 6.668 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.3331, allocations: 23.7 kB / 1.022 GB, free: 6.645 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/0.3331, allocations: 25.72 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3332, allocations: 326.8 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.78e-05/0.3333, allocations: 27.98 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.288e-05/0.3334, allocations: 45.7 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.3336, allocations: 70.11 kB / 1.022 GB, free: 6.133 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3336, allocations: 0 / 1.022 GB, free: 6.133 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002105/0.3338, allocations: 113.5 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3338, allocations: 8 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.3338, allocations: 0 / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3338, allocations: 3.938 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.063e-05/0.3339, allocations: 19.92 kB / 1.022 GB, free: 5.984 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.3339, allocations: 4 kB / 1.022 GB, free: 5.98 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.603e-05/0.334, allocations: 15.83 kB / 1.022 GB, free: 5.965 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3341, allocations: 8 kB / 1.022 GB, free: 5.957 MB / 0.795 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.449e-05/0.3342, allocations: 121.8 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.3342, allocations: 4 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.3342, allocations: 12.36 kB / 1.022 GB, free: 5.809 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3342, allocations: 4 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3342, allocations: 0 / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3343, allocations: 0 / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.3344, allocations: 201.5 kB / 1.022 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3344, allocations: 0 / 1.022 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.079e-05/0.3345, allocations: 15.98 kB / 1.022 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3345, allocations: 3.938 kB / 1.022 GB, free: 5.539 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.3346, allocations: 8 kB / 1.022 GB, free: 5.531 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3346, allocations: 0 / 1.022 GB, free: 5.531 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3346, allocations: 0 / 1.022 GB, free: 5.531 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.3349, allocations: 212.9 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.335, allocations: 89.05 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.335, allocations: 4.062 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.162e-05/0.3351, allocations: 7.984 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.3352, allocations: 15.98 kB / 1.023 GB, free: 5.172 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.3352, allocations: 7.984 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.235e-05/0.3352, allocations: 83.28 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3352, allocations: 0 / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00021/0.3355, allocations: 23.98 kB / 1.023 GB, free: 5.059 MB / 0.795 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.0001266/0.3356, allocations: 113.3 kB / 1.023 GB, free: 4.941 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002344/0.3358, allocations: 99.83 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3358, allocations: 0 / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.336, allocations: 67.91 kB / 1.023 GB, free: 4.777 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.3362, allocations: 14.28 kB / 1.023 GB, free: 4.766 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000549/0.3368, allocations: 303.2 kB / 1.023 GB, free: 4.438 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.337, allocations: 0.6963 MB / 1.024 GB, free: 3.715 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/0.3371, allocations: 11.44 kB / 1.024 GB, free: 3.703 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3371, allocations: 0 / 1.024 GB, free: 3.703 MB / 0.795 GB Notification: Performance of Templates: time 0.002913/0.34, allocations: 1.131 MB / 1.025 GB, free: 2.574 MB / 0.795 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/jenkins1/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