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) 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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=5000,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=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_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.001109/0.001109, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008998/0.008998, allocations: 171.9 kB / 16.27 MB, free: 6.66 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.803/2.803, allocations: 462.7 MB / 0.7364 GB, free: 260 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.0003478, allocations: 9.062 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3134, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002033/0.3155, allocations: 1.294 MB / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007787/0.3163, allocations: 454.7 kB / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.944e-05/0.3164, allocations: 0 / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.713e-05/0.3164, allocations: 0 / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.506e-05/0.3165, allocations: 7.938 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.3167, allocations: 27.91 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000116/0.3168, allocations: 71.77 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.317, allocations: 8 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.3171, allocations: 23.92 kB / 1.061 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.3172, allocations: 35.89 kB / 1.061 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.3172, allocations: 0 / 1.061 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.343e-05/0.3172, allocations: 4 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.6e-05/0.3172, allocations: 15.92 kB / 1.061 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.908e-05/0.3173, allocations: 49.56 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.3175, allocations: 64.11 kB / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3175, allocations: 0 / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3175, allocations: 0 / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.3175, allocations: 0 / 1.061 GB, free: 3.406 MB / 0.8106 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.0005238/0.318, allocations: 359.4 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3181, allocations: 12.03 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.3181, allocations: 12.83 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.3182, allocations: 164.3 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.3183, allocations: 8.375 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.3183, allocations: 4.375 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.3185, allocations: 93.94 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.3185, allocations: 0 / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.3185, allocations: 0 / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.3185, allocations: 3.938 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.3187, allocations: 51.91 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005397/0.3192, allocations: 328.6 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.3195, allocations: 106.5 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.3196, allocations: 56.83 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.3196, allocations: 0 / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.3199, allocations: 115.4 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.3199, allocations: 0 / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003884/0.3203, allocations: 181.8 kB / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.3204, allocations: 51.41 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.59e-05/0.3204, allocations: 113.8 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.3205, allocations: 29.7 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.691e-05/0.3205, allocations: 88.38 kB / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.3206, allocations: 27.61 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.3206, allocations: 21.66 kB / 1.062 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.3207, allocations: 326.8 kB / 1.063 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.384e-05/0.3208, allocations: 31.98 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.116e-05/0.3209, allocations: 49.69 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.3211, allocations: 73.75 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3211, allocations: 0 / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002184/0.3213, allocations: 117.5 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3213, allocations: 4 kB / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3213, allocations: 0 / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3213, allocations: 4 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.068e-05/0.3214, allocations: 11.98 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3214, allocations: 3.938 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.668e-05/0.3215, allocations: 23.92 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.3216, allocations: 4 kB / 1.063 GB, free: 0.7422 MB / 0.8106 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.0001022/0.3217, allocations: 117.8 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.3217, allocations: 7.906 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.338e-05/0.3217, allocations: 16.36 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3217, allocations: 4 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3218, allocations: 0 / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3218, allocations: 0 / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.3219, allocations: 201.7 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.322, allocations: 4 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-05/0.3221, allocations: 11.98 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3221, allocations: 0 / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.3221, allocations: 4 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3221, allocations: 3.938 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3221, allocations: 0 / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004086/0.3225, allocations: 232.8 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.436e-05/0.3226, allocations: 81.02 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.3226, allocations: 8.031 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.003e-05/0.3227, allocations: 7.984 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.3228, allocations: 15.97 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.3228, allocations: 4 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.615e-05/0.3228, allocations: 95.33 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3229, allocations: 0 / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002139/0.3231, allocations: 16 kB / 1.064 GB, free: 15.83 MB / 0.8262 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.0001515/0.3232, allocations: 107.2 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002646/0.3235, allocations: 95.83 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3235, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.3236, allocations: 75.91 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002063/0.3239, allocations: 11.98 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.3244, allocations: 303.8 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.3247, allocations: 0.6965 MB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.529e-05/0.3248, allocations: 8.672 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/0.3248, allocations: 11.44 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of SimCode: time 4.4e-07/0.3248, allocations: 0 / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of Templates: time 0.003699/0.3285, allocations: 0.9357 MB / 1.066 GB, free: 13.54 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches