Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001383/0.001383, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001448/0.001448, allocations: 191.3 kB / 22.23 MB, free: 5.137 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.324/1.324, allocations: 225.6 MB / 251 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.894/2.894, allocations: 496 MB / 0.7835 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_12_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_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 69.27 kB / 1.138 GB, free: 33.91 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3089, allocations: 173.6 MB / 1.307 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002626/0.3115, allocations: 1.6 MB / 1.309 GB, free: 248 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0007245/0.3122, allocations: 454.9 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.738e-05/0.3123, allocations: 0 / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.783e-05/0.3123, allocations: 7.938 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.876e-05/0.3124, allocations: 11.92 kB / 1.309 GB, free: 15.77 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.3125, allocations: 27.92 kB / 1.309 GB, free: 15.75 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.3126, allocations: 75.81 kB / 1.309 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.329e-05/0.3127, allocations: 8 kB / 1.309 GB, free: 15.66 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.791e-05/0.3128, allocations: 31.86 kB / 1.309 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.693e-05/0.3129, allocations: 39.83 kB / 1.309 GB, free: 15.59 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.3129, allocations: 8 kB / 1.309 GB, free: 15.59 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.443e-05/0.3129, allocations: 4 kB / 1.309 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.3129, allocations: 11.98 kB / 1.31 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.313, allocations: 35.86 kB / 1.31 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.3131, allocations: 71.7 kB / 1.31 GB, free: 15.46 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.3131, allocations: 0 / 1.31 GB, free: 15.46 MB / 1.014 GB Notification: Performance of FrontEnd: time 8.62e-07/0.3131, allocations: 0 / 1.31 GB, free: 15.46 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3131, allocations: 0 / 1.31 GB, free: 15.46 MB / 1.014 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.0005306/0.3137, allocations: 290.2 kB / 1.31 GB, free: 15.15 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.3137, allocations: 8.922 kB / 1.31 GB, free: 15.14 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.3137, allocations: 12.88 kB / 1.31 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.3138, allocations: 118.4 kB / 1.31 GB, free: 14.99 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.3139, allocations: 8.375 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.3139, allocations: 8.312 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.3141, allocations: 85.94 kB / 1.31 GB, free: 14.89 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.3141, allocations: 0 / 1.31 GB, free: 14.89 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3141, allocations: 4 kB / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3141, allocations: 0 / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.3142, allocations: 39.97 kB / 1.31 GB, free: 14.84 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.3148, allocations: 295.8 kB / 1.31 GB, free: 14.51 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.315, allocations: 82.55 kB / 1.311 GB, free: 14.42 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.408e-05/0.3151, allocations: 32.84 kB / 1.311 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.3151, allocations: 0 / 1.311 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.3154, allocations: 131.2 kB / 1.311 GB, free: 14.25 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.3154, allocations: 0 / 1.311 GB, free: 14.25 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0003899/0.3157, allocations: 165.6 kB / 1.311 GB, free: 14.08 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.3158, allocations: 59.39 kB / 1.311 GB, free: 14.01 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.811e-05/0.3159, allocations: 109.8 kB / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.3159, allocations: 33.7 kB / 1.311 GB, free: 13.85 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.316, allocations: 84.38 kB / 1.311 GB, free: 13.77 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.316, allocations: 35.83 kB / 1.311 GB, free: 13.73 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.316, allocations: 25.72 kB / 1.311 GB, free: 13.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3162, allocations: 326.8 kB / 1.311 GB, free: 13.37 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.78e-05/0.3163, allocations: 27.98 kB / 1.312 GB, free: 13.34 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.865e-05/0.3164, allocations: 50.52 kB / 1.312 GB, free: 13.29 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.3165, allocations: 69.69 kB / 1.312 GB, free: 13.21 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3165, allocations: 0 / 1.312 GB, free: 13.21 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002086/0.3167, allocations: 113.9 kB / 1.312 GB, free: 13.1 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.3167, allocations: 4 kB / 1.312 GB, free: 13.09 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.3167, allocations: 0 / 1.312 GB, free: 13.09 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3167, allocations: 4 kB / 1.312 GB, free: 13.09 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.519e-05/0.3168, allocations: 19.92 kB / 1.312 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3168, allocations: 0 / 1.312 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.16e-05/0.3169, allocations: 11.98 kB / 1.312 GB, free: 13.06 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.3169, allocations: 4 kB / 1.312 GB, free: 13.05 MB / 1.014 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.0001113/0.317, allocations: 136 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.317, allocations: 7.953 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/0.3171, allocations: 12.38 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3171, allocations: 3.984 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3171, allocations: 0 / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3171, allocations: 4.031 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.3173, allocations: 180.6 kB / 1.312 GB, free: 12.66 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3173, allocations: 0 / 1.312 GB, free: 12.66 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.162e-05/0.3173, allocations: 7.984 kB / 1.312 GB, free: 12.66 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3173, allocations: 4 kB / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.3173, allocations: 0 / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3173, allocations: 0 / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3173, allocations: 0 / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/0.3177, allocations: 232.8 kB / 1.312 GB, free: 12.41 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.3178, allocations: 3.953 kB / 1.312 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.3178, allocations: 4.031 kB / 1.312 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.176e-05/0.3178, allocations: 7.984 kB / 1.312 GB, free: 12.39 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.3179, allocations: 15.97 kB / 1.312 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.3179, allocations: 4 kB / 1.312 GB, free: 12.37 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.745e-05/0.318, allocations: 91.58 kB / 1.312 GB, free: 12.28 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.318, allocations: 3.938 kB / 1.312 GB, free: 12.28 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001977/0.3182, allocations: 16 kB / 1.312 GB, free: 12.26 MB / 1.014 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.0001131/0.3183, allocations: 107.3 kB / 1.313 GB, free: 12.15 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.3185, allocations: 87.83 kB / 1.313 GB, free: 12.06 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.3185, allocations: 0 / 1.313 GB, free: 12.06 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3186, allocations: 55.84 kB / 1.313 GB, free: 12.01 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001838/0.3188, allocations: 12.22 kB / 1.313 GB, free: 12 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004961/0.3193, allocations: 267.3 kB / 1.313 GB, free: 11.71 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.3196, allocations: 0.6924 MB / 1.314 GB, free: 10.99 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.722e-05/0.3197, allocations: 12.66 kB / 1.314 GB, free: 10.98 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.3197, allocations: 11.44 kB / 1.314 GB, free: 10.97 MB / 1.014 GB Notification: Performance of SimCode: time 2.71e-07/0.3197, allocations: 0 / 1.314 GB, free: 10.97 MB / 1.014 GB Notification: Performance of Templates: time 0.003694/0.3234, allocations: 1.135 MB / 1.315 GB, free: 9.84 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.04661559406668]