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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 118.2 kB / 17.13 MB, free: 5.781 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.001631/0.001631, allocations: 191.7 kB / 20.08 MB, free: 2.871 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.441/1.441, allocations: 225.6 MB / 248.5 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.54/2.54, allocations: 443.5 MB / 0.7293 GB, free: 14.45 MB / 0.5762 GB " [Timeout remaining time 177] 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=2500,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=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.89 kB / 1.057 GB, free: 1.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3221, allocations: 160.7 MB / 1.214 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003063/0.3251, allocations: 1.566 MB / 1.216 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009435/0.3261, allocations: 463.6 kB / 1.216 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.047e-05/0.3261, allocations: 0 / 1.216 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.704e-05/0.3262, allocations: 7.922 kB / 1.216 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.678e-05/0.3263, allocations: 15.86 kB / 1.216 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002409/0.3265, allocations: 23.97 kB / 1.216 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.3266, allocations: 63.84 kB / 1.216 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.3267, allocations: 19.98 kB / 1.216 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.3269, allocations: 35.84 kB / 1.216 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.809e-05/0.3269, allocations: 35.84 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.327, allocations: 4 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.636e-05/0.327, allocations: 8 kB / 1.216 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.157e-05/0.327, allocations: 19.97 kB / 1.216 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.396e-05/0.3271, allocations: 23.86 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.3272, allocations: 71.7 kB / 1.216 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3272, allocations: 0 / 1.216 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.432e-06/0.3272, allocations: 0 / 1.216 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.3272, allocations: 0 / 1.216 GB, free: 14.46 MB / 0.9669 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.0006513/0.3279, allocations: 375.3 kB / 1.217 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3279, allocations: 8.031 kB / 1.217 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.655e-05/0.328, allocations: 16.88 kB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.3281, allocations: 176.2 kB / 1.217 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.3281, allocations: 8.375 kB / 1.217 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.3282, allocations: 4.375 kB / 1.217 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.3284, allocations: 89.94 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3284, allocations: 7.938 kB / 1.217 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.3284, allocations: 0 / 1.217 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.3284, allocations: 4 kB / 1.217 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.3285, allocations: 39.91 kB / 1.217 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.3291, allocations: 312.8 kB / 1.217 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.3294, allocations: 86.55 kB / 1.217 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.252e-05/0.3295, allocations: 36.83 kB / 1.217 GB, free: 13.17 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.3295, allocations: 0 / 1.217 GB, free: 13.17 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.3298, allocations: 123.5 kB / 1.218 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.472e-06/0.3298, allocations: 7.938 kB / 1.218 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004415/0.3302, allocations: 161.6 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.3303, allocations: 55.41 kB / 1.218 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.3304, allocations: 113.8 kB / 1.218 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.3304, allocations: 29.7 kB / 1.218 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.323e-05/0.3304, allocations: 84.38 kB / 1.218 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.051e-05/0.3305, allocations: 35.67 kB / 1.218 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.3305, allocations: 29.72 kB / 1.218 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3307, allocations: 326.8 kB / 1.218 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.533e-05/0.3308, allocations: 27.98 kB / 1.218 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.3309, allocations: 49.69 kB / 1.218 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.331, allocations: 69.62 kB / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.331, allocations: 0 / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002431/0.3313, allocations: 113.6 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.3313, allocations: 4 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3313, allocations: 3.984 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3313, allocations: 4 kB / 1.219 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.191e-05/0.3314, allocations: 15.94 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.3314, allocations: 0 / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.868e-05/0.3315, allocations: 7.984 kB / 1.219 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.3315, allocations: 4 kB / 1.219 GB, free: 11.84 MB / 0.9669 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.0001026/0.3316, allocations: 127.8 kB / 1.219 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/0.3316, allocations: 15.94 kB / 1.219 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.779e-05/0.3316, allocations: 8.375 kB / 1.219 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3316, allocations: 3.938 kB / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3316, allocations: 0 / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3316, allocations: 0 / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.3318, allocations: 205.5 kB / 1.219 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3318, allocations: 0 / 1.219 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.798e-05/0.3319, allocations: 11.98 kB / 1.219 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3319, allocations: 0 / 1.219 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3319, allocations: 11.94 kB / 1.219 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3319, allocations: 3.938 kB / 1.219 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3319, allocations: 0 / 1.219 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004102/0.3323, allocations: 225.4 kB / 1.219 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.3324, allocations: 81.06 kB / 1.219 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.3324, allocations: 4.031 kB / 1.219 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.553e-05/0.3325, allocations: 7.984 kB / 1.219 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/0.3326, allocations: 20.03 kB / 1.219 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.3326, allocations: 4 kB / 1.219 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.789e-05/0.3326, allocations: 91.27 kB / 1.219 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3326, allocations: 0 / 1.219 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002029/0.3328, allocations: 20 kB / 1.219 GB, free: 10.93 MB / 0.9669 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.0001493/0.333, allocations: 107.2 kB / 1.22 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002697/0.3333, allocations: 87.94 kB / 1.22 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3333, allocations: 4 kB / 1.22 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.3334, allocations: 51.91 kB / 1.22 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.3336, allocations: 11.98 kB / 1.22 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000572/0.3342, allocations: 290.8 kB / 1.22 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.3345, allocations: 0.6885 MB / 1.221 GB, free: 9.629 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.3345, allocations: 11.44 kB / 1.221 GB, free: 9.617 MB / 0.9669 GB Notification: Performance of SimCode: time 2.9e-07/0.3345, allocations: 0 / 1.221 GB, free: 9.617 MB / 0.9669 GB Notification: Performance of Templates: time 0.002897/0.3374, allocations: 1.144 MB / 1.222 GB, free: 8.473 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 10.339550935896114]