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.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.0007773/0.0007773, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007854/0.0007854, allocations: 178.2 kB / 23.22 MB, free: 1.348 MB / 18.57 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 0.859/0.859, allocations: 177.2 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.795/1.795, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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 1.433e-06/1.433e-06, allocations: 0 / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.309e-05, allocations: 2.281 kB / 1.001 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001829/0.001852, allocations: 1.584 MB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.000558/0.00241, allocations: 495.4 kB / 1.003 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.558e-05/0.002465, allocations: 4 kB / 1.003 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.595e-05/0.002491, allocations: 3.938 kB / 1.003 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.174e-05/0.002543, allocations: 11.92 kB / 1.003 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.002755, allocations: 43.88 kB / 1.003 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.002861, allocations: 67.78 kB / 1.003 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.664e-05/0.002947, allocations: 11.98 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.003061, allocations: 55.77 kB / 1.003 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.683e-05/0.003118, allocations: 27.95 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.003133, allocations: 8 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 3.673e-05/0.00317, allocations: 12 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.773e-05/0.003188, allocations: 19.91 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.307e-05/0.003221, allocations: 15.98 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.003333, allocations: 75.77 kB / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003335, allocations: 0 / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.91e-07/0.003336, allocations: 0 / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 2.845e-06/0.003338, allocations: 0 / 1.003 GB, free: 10.56 MB / 0.9636 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.0003985/0.003737, allocations: 298.1 kB / 1.004 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.003771, allocations: 17.34 kB / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.468e-05/0.003866, allocations: 20.88 kB / 1.004 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.004005, allocations: 129.6 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.004022, allocations: 4.375 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.004044, allocations: 12.36 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.004167, allocations: 82.2 kB / 1.004 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.004175, allocations: 4.125 kB / 1.004 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.004184, allocations: 384 / 1.004 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.00419, allocations: 3.938 kB / 1.004 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.775e-05/0.004267, allocations: 51.91 kB / 1.004 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003155/0.004583, allocations: 244.5 kB / 1.004 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.004757, allocations: 82.53 kB / 1.004 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.986e-05/0.004807, allocations: 36.84 kB / 1.004 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.00482, allocations: 0 / 1.004 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001403/0.00496, allocations: 127.2 kB / 1.004 GB, free: 9.359 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 1.011e-06/0.004961, allocations: 0 / 1.004 GB, free: 9.359 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002465/0.005208, allocations: 169.5 kB / 1.004 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.005238, allocations: 55.41 kB / 1.005 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.005295, allocations: 113.8 kB / 1.005 GB, free: 9 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.005306, allocations: 25.7 kB / 1.005 GB, free: 8.969 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.005345, allocations: 96.31 kB / 1.005 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.005373, allocations: 35.89 kB / 1.005 GB, free: 8.832 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.005406, allocations: 37.64 kB / 1.005 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.325e-05/0.005479, allocations: 314.8 kB / 1.005 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.669e-05/0.005526, allocations: 31.98 kB / 1.005 GB, free: 8.441 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.138e-05/0.005577, allocations: 52.83 kB / 1.005 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.784e-05/0.005655, allocations: 61.7 kB / 1.005 GB, free: 8.32 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.005657, allocations: 0 / 1.005 GB, free: 8.32 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001183/0.005775, allocations: 121.4 kB / 1.005 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.005786, allocations: 8 kB / 1.005 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.005789, allocations: 0 / 1.005 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.457e-06/0.005799, allocations: 4 kB / 1.005 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.936e-05/0.005838, allocations: 16.03 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.005843, allocations: 7.922 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.5e-05/0.005878, allocations: 7.984 kB / 1.005 GB, free: 8.152 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.005885, allocations: 8 kB / 1.005 GB, free: 8.145 MB / 0.9636 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 5.694e-05/0.005942, allocations: 117.8 kB / 1.006 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-06/0.005952, allocations: 11.89 kB / 1.006 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.081e-05/0.005973, allocations: 12.44 kB / 1.006 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.005974, allocations: 0 / 1.006 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.005977, allocations: 4 kB / 1.006 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.00598, allocations: 0 / 1.006 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.628e-05/0.006057, allocations: 133.2 kB / 1.006 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.006057, allocations: 0 / 1.006 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.006091, allocations: 11.98 kB / 1.006 GB, free: 7.82 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.006093, allocations: 3.938 kB / 1.006 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.006103, allocations: 12.38 kB / 1.006 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.006104, allocations: 3.938 kB / 1.006 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.006104, allocations: 0 / 1.006 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.006335, allocations: 221.4 kB / 1.006 GB, free: 7.566 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.745e-06/0.006343, allocations: 11.92 kB / 1.006 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.006359, allocations: 7.938 kB / 1.006 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.086e-05/0.00639, allocations: 11.98 kB / 1.006 GB, free: 7.535 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.861e-05/0.006428, allocations: 11.97 kB / 1.006 GB, free: 7.523 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.006435, allocations: 8 kB / 1.006 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.092e-05/0.006466, allocations: 91.27 kB / 1.006 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006466, allocations: 0 / 1.006 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001219/0.006588, allocations: 12 kB / 1.006 GB, free: 7.414 MB / 0.9636 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 7.156e-05/0.00666, allocations: 115.2 kB / 1.006 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001403/0.0068, allocations: 83.89 kB / 1.006 GB, free: 7.207 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.006801, allocations: 0 / 1.006 GB, free: 7.207 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.176e-05/0.006863, allocations: 55.91 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.00699, allocations: 10.22 kB / 1.006 GB, free: 7.145 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003272/0.007317, allocations: 266.8 kB / 1.007 GB, free: 6.848 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.895e-05/0.007356, allocations: 75.33 kB / 1.007 GB, free: 6.754 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.91e-05/0.007385, allocations: 16.5 kB / 1.007 GB, free: 6.738 MB / 0.9636 GB Notification: Performance of SimCode: time 3.91e-07/0.007385, allocations: 0 / 1.007 GB, free: 6.738 MB / 0.9636 GB Notification: Performance of Templates: time 0.00163/0.009015, allocations: 1.175 MB / 1.008 GB, free: 5.562 MB / 0.9636 GB " [Timeout remaining time 300] 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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 6.6104796174913645]