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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001553/0.001553, allocations: 107.3 kB / 16.36 MB, free: 6.285 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.00172/0.00172, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.447/2.447, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 73.95 kB / 0.8707 GB, free: 1.426 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3055, allocations: 151.6 MB / 1.019 GB, free: 9.832 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002941/0.3085, allocations: 1.578 MB / 1.02 GB, free: 8.234 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007137/0.3092, allocations: 452.4 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.866e-05/0.3093, allocations: 0 / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.3094, allocations: 11.92 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.832e-05/0.3094, allocations: 7.922 kB / 1.021 GB, free: 7.77 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.3096, allocations: 35.91 kB / 1.021 GB, free: 7.734 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.3098, allocations: 67.78 kB / 1.021 GB, free: 7.668 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.943e-05/0.3099, allocations: 15.97 kB / 1.021 GB, free: 7.652 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.31, allocations: 31.92 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.982e-05/0.3101, allocations: 35.84 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.3101, allocations: 4 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.458e-05/0.3101, allocations: 8 kB / 1.021 GB, free: 7.574 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.212e-05/0.3101, allocations: 23.91 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.028e-05/0.3102, allocations: 27.86 kB / 1.021 GB, free: 7.523 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.3103, allocations: 59.83 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3103, allocations: 0 / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.584e-06/0.3103, allocations: 4 kB / 1.021 GB, free: 7.461 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.3103, allocations: 0 / 1.021 GB, free: 7.461 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.000534/0.3109, allocations: 371.3 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.3109, allocations: 8.922 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.616e-05/0.311, allocations: 16.83 kB / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.3111, allocations: 164.3 kB / 1.022 GB, free: 6.828 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.3111, allocations: 8.375 kB / 1.022 GB, free: 6.82 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.3112, allocations: 4.375 kB / 1.022 GB, free: 6.816 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.3113, allocations: 97.81 kB / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.3114, allocations: 0 / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.3114, allocations: 4 kB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3114, allocations: 4 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.3115, allocations: 43.91 kB / 1.022 GB, free: 6.664 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005527/0.3121, allocations: 320.7 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.3123, allocations: 102.5 kB / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.74e-05/0.3124, allocations: 44.84 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.3125, allocations: 0 / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.3127, allocations: 123.4 kB / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.522e-06/0.3127, allocations: 0 / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.000366/0.3131, allocations: 173.6 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.3132, allocations: 59.41 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.984e-05/0.3132, allocations: 105.8 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.3133, allocations: 29.7 kB / 1.023 GB, free: 5.617 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.3133, allocations: 88.28 kB / 1.023 GB, free: 5.527 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/0.3133, allocations: 27.7 kB / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.3134, allocations: 29.7 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.291e-05/0.3135, allocations: 318.8 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.293e-05/0.3136, allocations: 35.98 kB / 1.023 GB, free: 5.109 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.164e-05/0.3137, allocations: 46.44 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.3138, allocations: 65.64 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.3138, allocations: 0 / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002096/0.314, allocations: 117.5 kB / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.314, allocations: 7.984 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3141, allocations: 4 kB / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3141, allocations: 0 / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.565e-05/0.3142, allocations: 12 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3142, allocations: 0 / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.259e-05/0.3143, allocations: 15.83 kB / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.3143, allocations: 8.312 kB / 1.023 GB, free: 4.82 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 8.654e-05/0.3144, allocations: 124.9 kB / 1.024 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.3144, allocations: 7.984 kB / 1.024 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.3144, allocations: 16.38 kB / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.3144, allocations: 0 / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3145, allocations: 0 / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3145, allocations: 4.031 kB / 1.024 GB, free: 4.664 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.3146, allocations: 201.5 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3146, allocations: 0 / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.937e-05/0.3147, allocations: 11.98 kB / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.3147, allocations: 0 / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.3147, allocations: 8 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3147, allocations: 0 / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3147, allocations: 0 / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.3151, allocations: 225.3 kB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.3152, allocations: 85.05 kB / 1.024 GB, free: 4.059 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.3152, allocations: 7.938 kB / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.101e-05/0.3153, allocations: 7.984 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.3153, allocations: 15.97 kB / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.3153, allocations: 8 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.145e-05/0.3154, allocations: 91.31 kB / 1.024 GB, free: 3.93 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3154, allocations: 4 kB / 1.024 GB, free: 3.926 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002054/0.3156, allocations: 16 kB / 1.024 GB, free: 3.91 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.0001324/0.3157, allocations: 106.6 kB / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.316, allocations: 99.77 kB / 1.024 GB, free: 3.703 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.316, allocations: 0 / 1.024 GB, free: 3.703 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.3161, allocations: 71.91 kB / 1.024 GB, free: 3.633 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001962/0.3163, allocations: 15.98 kB / 1.024 GB, free: 3.617 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004933/0.3168, allocations: 257.3 kB / 1.025 GB, free: 3.34 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.3171, allocations: 0.6885 MB / 1.025 GB, free: 2.625 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.479e-05/0.3171, allocations: 8.656 kB / 1.025 GB, free: 2.617 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/0.3172, allocations: 11.44 kB / 1.025 GB, free: 2.605 MB / 0.795 GB Notification: Performance of SimCode: time 3.81e-07/0.3172, allocations: 0 / 1.025 GB, free: 2.605 MB / 0.795 GB Notification: Performance of Templates: time 0.003458/0.3207, allocations: 1.07 MB / 1.026 GB, free: 1.539 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 -s gbode -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