Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 115.1 kB / 17.08 MB, free: 5.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 193.2 kB / 20.03 MB, free: 2.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 245.7 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.921/2.921, allocations: 489.3 MB / 0.7687 GB, free: 3.758 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 67.89 kB / 1.103 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.014/1.016, allocations: 163.8 MB / 1.263 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002505/1.019, allocations: 1.585 MB / 1.264 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006752/1.02, allocations: 443.3 kB / 1.265 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.284e-05/1.02, allocations: 2.781 kB / 1.265 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/1.02, allocations: 5.344 kB / 1.265 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.85e-05/1.02, allocations: 10.7 kB / 1.265 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/1.02, allocations: 36.34 kB / 1.265 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/1.02, allocations: 66.59 kB / 1.265 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.296e-05/1.02, allocations: 10.56 kB / 1.265 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.804e-05/1.02, allocations: 37.73 kB / 1.265 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.71e-05/1.02, allocations: 33.09 kB / 1.265 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/1.02, allocations: 6.094 kB / 1.265 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.843e-05/1.02, allocations: 6.312 kB / 1.265 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/1.02, allocations: 18.25 kB / 1.265 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.989e-05/1.02, allocations: 31.22 kB / 1.265 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/1.021, allocations: 61.77 kB / 1.265 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/1.021, allocations: 4.656 kB / 1.265 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.593e-06/1.021, allocations: 0.7812 kB / 1.265 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.779e-06/1.021, allocations: 0 / 1.265 GB, free: 6.434 MB / 0.9981 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.0005104/1.021, allocations: 375.1 kB / 1.265 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/1.021, allocations: 8.906 kB / 1.265 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/1.021, allocations: 10.19 kB / 1.265 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.503e-05/1.021, allocations: 177.5 kB / 1.265 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/1.021, allocations: 3.016 kB / 1.265 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/1.021, allocations: 10.91 kB / 1.265 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/1.022, allocations: 83.05 kB / 1.266 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/1.022, allocations: 0 / 1.266 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/1.022, allocations: 1.328 kB / 1.266 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/1.022, allocations: 2.109 kB / 1.266 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/1.022, allocations: 43.02 kB / 1.266 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/1.022, allocations: 332.2 kB / 1.266 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/1.023, allocations: 98.03 kB / 1.266 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.28e-05/1.023, allocations: 45.77 kB / 1.266 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/1.023, allocations: 1.938 kB / 1.266 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/1.023, allocations: 116.8 kB / 1.266 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/1.023, allocations: 3.938 kB / 1.266 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0003903/1.023, allocations: 171.8 kB / 1.266 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/1.023, allocations: 53.7 kB / 1.266 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.937e-05/1.023, allocations: 115.3 kB / 1.266 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/1.023, allocations: 28.66 kB / 1.266 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.76e-05/1.023, allocations: 87.36 kB / 1.267 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/1.023, allocations: 30.16 kB / 1.267 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.535e-05/1.024, allocations: 28.7 kB / 1.267 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.807e-05/1.024, allocations: 323.3 kB / 1.267 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/1.024, allocations: 28.34 kB / 1.267 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.726e-05/1.024, allocations: 59.42 kB / 1.267 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/1.024, allocations: 69.7 kB / 1.267 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.024, allocations: 0 / 1.267 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002066/1.024, allocations: 111.9 kB / 1.267 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/1.024, allocations: 5.062 kB / 1.267 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/1.024, allocations: 1.484 kB / 1.267 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/1.024, allocations: 1.375 kB / 1.267 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.591e-05/1.024, allocations: 15.2 kB / 1.267 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/1.024, allocations: 6.359 kB / 1.267 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.935e-05/1.024, allocations: 10.94 kB / 1.267 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/1.024, allocations: 2.719 kB / 1.267 GB, free: 4.445 MB / 0.9981 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 6.506e-05/1.024, allocations: 128.1 kB / 1.267 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.715e-05/1.024, allocations: 8.844 kB / 1.267 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/1.025, allocations: 14.77 kB / 1.267 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/1.025, allocations: 5.453 kB / 1.267 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.025, allocations: 1 kB / 1.267 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/1.025, allocations: 4.516 kB / 1.267 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/1.025, allocations: 203.6 kB / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/1.025, allocations: 1 kB / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.309e-05/1.025, allocations: 9.531 kB / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/1.025, allocations: 0.6094 kB / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/1.025, allocations: 3.875 kB / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/1.025, allocations: 1 kB / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/1.025, allocations: 0 / 1.268 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/1.025, allocations: 220 kB / 1.268 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.238e-05/1.025, allocations: 87.88 kB / 1.268 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/1.025, allocations: 3.578 kB / 1.268 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.044e-05/1.025, allocations: 11.11 kB / 1.268 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.346e-05/1.025, allocations: 15.11 kB / 1.268 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/1.025, allocations: 5.594 kB / 1.268 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.044e-05/1.025, allocations: 88.05 kB / 1.268 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.025, allocations: 0 / 1.268 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001988/1.026, allocations: 24.48 kB / 1.268 GB, free: 3.75 MB / 0.9981 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.0001003/1.026, allocations: 105.1 kB / 1.268 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000244/1.026, allocations: 92.33 kB / 1.268 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.026, allocations: 0 / 1.268 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/1.026, allocations: 67.06 kB / 1.268 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/1.026, allocations: 15.97 kB / 1.268 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004685/1.027, allocations: 303.7 kB / 1.269 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/1.027, allocations: 0.6929 MB / 1.269 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/1.027, allocations: 13.8 kB / 1.269 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of SimCode: time 2.21e-07/1.027, allocations: 3.938 kB / 1.269 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of Templates: time 0.00317/1.03, allocations: 1.126 MB / 1.27 GB, free: 2.574 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.11716905911453]