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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 103 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002728/0.002728, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.603/1.603, allocations: 230.6 MB / 252.8 MB, free: 9.121 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.349/3.349, allocations: 0.4899 GB / 0.7915 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 75.59 kB / 1.149 GB, free: 26.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.353, allocations: 176.1 MB / 1.321 GB, free: 2.805 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003032/0.356, allocations: 1.593 MB / 1.323 GB, free: 1.199 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009771/0.357, allocations: 0.5065 MB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.472e-05/0.3571, allocations: 3.938 kB / 1.323 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.033e-05/0.3571, allocations: 7.922 kB / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.666e-05/0.3572, allocations: 11.88 kB / 1.323 GB, free: 0.6641 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.3574, allocations: 39.89 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.3575, allocations: 71.83 kB / 1.323 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.581e-05/0.3576, allocations: 12 kB / 1.323 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.3578, allocations: 43.83 kB / 1.323 GB, free: 0.5 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.075e-05/0.3579, allocations: 31.84 kB / 1.324 GB, free: 480 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.3579, allocations: 8 kB / 1.324 GB, free: 472 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.737e-05/0.3579, allocations: 8 kB / 1.324 GB, free: 464 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.755e-05/0.358, allocations: 19.97 kB / 1.324 GB, free: 444 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.66e-05/0.358, allocations: 27.88 kB / 1.324 GB, free: 416 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.3582, allocations: 67.7 kB / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3582, allocations: 0 / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3582, allocations: 0 / 1.324 GB, free: 348 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.3582, allocations: 4 kB / 1.324 GB, free: 344 kB / 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.0006302/0.3588, allocations: 383.2 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.3588, allocations: 11.98 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.359, allocations: 20.88 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.3592, allocations: 184.2 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.3592, allocations: 4.375 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.3593, allocations: 4.375 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.3595, allocations: 93.94 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.3595, allocations: 0 / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.3595, allocations: 3.984 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.3595, allocations: 7.938 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.3597, allocations: 43.97 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005705/0.3602, allocations: 320.7 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.3605, allocations: 86.52 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.357e-05/0.3606, allocations: 36.83 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3606, allocations: 4 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.3609, allocations: 123.2 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.3609, allocations: 0 / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004318/0.3613, allocations: 173.5 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.3613, allocations: 59.28 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.958e-05/0.3614, allocations: 109.8 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.3615, allocations: 29.7 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.3615, allocations: 88.38 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.3616, allocations: 31.73 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/0.3616, allocations: 33.7 kB / 1.325 GB, free: 14.31 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3618, allocations: 322.8 kB / 1.326 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.491e-05/0.3619, allocations: 27.98 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.635e-05/0.362, allocations: 50.69 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.3621, allocations: 61.64 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3621, allocations: 4 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002335/0.3623, allocations: 117.5 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3624, allocations: 8 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3624, allocations: 0 / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3624, allocations: 0 / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.113e-05/0.3625, allocations: 15.94 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.3625, allocations: 0 / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.721e-05/0.3626, allocations: 11.98 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.3626, allocations: 4 kB / 1.326 GB, free: 13.68 MB / 1.029 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.0001001/0.3627, allocations: 121.8 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.137e-05/0.3627, allocations: 11.94 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.3627, allocations: 12.38 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3627, allocations: 4 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3627, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3627, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.3629, allocations: 201.7 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3629, allocations: 3.984 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.848e-05/0.363, allocations: 11.94 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.363, allocations: 4 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.363, allocations: 7.984 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.363, allocations: 0 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.363, allocations: 0 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.3634, allocations: 210 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.3635, allocations: 85.09 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.3635, allocations: 11.98 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.807e-05/0.3636, allocations: 8.062 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.3637, allocations: 19.95 kB / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.3637, allocations: 7.984 kB / 1.327 GB, free: 12.87 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.496e-05/0.3637, allocations: 95.2 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3637, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002154/0.3639, allocations: 23.94 kB / 1.327 GB, free: 12.75 MB / 1.029 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.0001391/0.3641, allocations: 107.9 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.3643, allocations: 91.72 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3643, allocations: 0 / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.3644, allocations: 47.97 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.3647, allocations: 17.55 kB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005475/0.3652, allocations: 273 kB / 1.327 GB, free: 12.2 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3656, allocations: 0.6884 MB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.282e-05/0.3656, allocations: 16.73 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.859e-05/0.3656, allocations: 11.44 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3656, allocations: 0 / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of Templates: time 0.003875/0.3695, allocations: 1.086 MB / 1.329 GB, free: 10.38 MB / 1.029 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: 9.258580691646785]