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.0009091/0.0009091, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.001413/0.001413, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.9021/0.9021, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.748/1.748, allocations: 377.9 MB / 0.6229 GB, free: 8.648 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 0.9822 GB, free: 2.059 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.586e-05/1.71e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.055 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001696/0.001713, allocations: 1.594 MB / 0.9838 GB, free: 460 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008787/0.002591, allocations: 486.7 kB / 0.9842 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.04e-05/0.002652, allocations: 4 kB / 0.9842 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.002682, allocations: 3.938 kB / 0.9842 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 6.916e-05/0.002751, allocations: 11.86 kB / 0.9842 GB, free: 15.95 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002432/0.002995, allocations: 47.83 kB / 0.9843 GB, free: 15.9 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.003129, allocations: 71.77 kB / 0.9844 GB, free: 15.83 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.647e-05/0.003225, allocations: 7.984 kB / 0.9844 GB, free: 15.82 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.003372, allocations: 47.95 kB / 0.9844 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.867e-05/0.00344, allocations: 23.91 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.003461, allocations: 15.92 kB / 0.9845 GB, free: 15.74 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 4.267e-05/0.003504, allocations: 8 kB / 0.9845 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.404e-05/0.003528, allocations: 19.92 kB / 0.9845 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.003568, allocations: 23.97 kB / 0.9845 GB, free: 15.69 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.003713, allocations: 75.77 kB / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.003715, allocations: 0 / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of FrontEnd: time 5.61e-07/0.003715, allocations: 0 / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.003719, allocations: 0 / 0.9846 GB, free: 15.61 MB / 0.948 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.0004822/0.004201, allocations: 302.1 kB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.004237, allocations: 8.031 kB / 0.9849 GB, free: 15.28 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.004359, allocations: 16.88 kB / 0.9849 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.004527, allocations: 125.7 kB / 0.985 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.00455, allocations: 8.359 kB / 0.985 GB, free: 15.11 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.004575, allocations: 12.38 kB / 0.985 GB, free: 15.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.004743, allocations: 86.08 kB / 0.9851 GB, free: 15.01 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.004752, allocations: 192 / 0.9851 GB, free: 15.01 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.004764, allocations: 4.375 kB / 0.9851 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.004771, allocations: 3.938 kB / 0.9851 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.00488, allocations: 43.97 kB / 0.9852 GB, free: 14.96 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.005301, allocations: 256.4 kB / 0.9854 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.005524, allocations: 82.55 kB / 0.9855 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.443e-05/0.005588, allocations: 32.84 kB / 0.9855 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.005603, allocations: 0 / 0.9855 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.005784, allocations: 123.2 kB / 0.9856 GB, free: 14.42 MB / 0.948 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.005785, allocations: 0 / 0.9856 GB, free: 14.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.0003473/0.006133, allocations: 173.9 kB / 0.9858 GB, free: 14.24 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.006171, allocations: 55.41 kB / 0.9859 GB, free: 14.18 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.822e-05/0.006239, allocations: 109.8 kB / 0.986 GB, free: 14.06 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.006256, allocations: 37.62 kB / 0.986 GB, free: 14.02 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.0063, allocations: 92.31 kB / 0.9861 GB, free: 13.92 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.006332, allocations: 23.81 kB / 0.9861 GB, free: 13.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.00638, allocations: 29.7 kB / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.006477, allocations: 322.8 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.254e-05/0.006539, allocations: 27.98 kB / 0.9865 GB, free: 13.51 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.638e-05/0.006616, allocations: 52.2 kB / 0.9865 GB, free: 13.46 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.006738, allocations: 77.67 kB / 0.9866 GB, free: 13.38 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.006741, allocations: 0 / 0.9866 GB, free: 13.38 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001807/0.006921, allocations: 113.5 kB / 0.9867 GB, free: 13.26 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.006937, allocations: 6.344 kB / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.006942, allocations: 3.938 kB / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.006957, allocations: 4 kB / 0.9867 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.51e-05/0.007012, allocations: 12.36 kB / 0.9867 GB, free: 13.23 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.007017, allocations: 0 / 0.9867 GB, free: 13.23 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.913e-05/0.007076, allocations: 19.88 kB / 0.9867 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.007086, allocations: 8 kB / 0.9867 GB, free: 13.21 MB / 0.948 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 7.903e-05/0.007165, allocations: 129.7 kB / 0.9869 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.007181, allocations: 11.89 kB / 0.9869 GB, free: 13.06 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.516e-05/0.007206, allocations: 8.438 kB / 0.9869 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.007208, allocations: 0 / 0.9869 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.007214, allocations: 48 / 0.9869 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.00722, allocations: 11.97 kB / 0.9869 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000105/0.007325, allocations: 129.5 kB / 0.987 GB, free: 12.88 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.007329, allocations: 3.984 kB / 0.987 GB, free: 12.88 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.767e-05/0.007376, allocations: 8 kB / 0.987 GB, free: 12.87 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.007381, allocations: 11.94 kB / 0.987 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.007392, allocations: 3.984 kB / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.007394, allocations: 0 / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.007394, allocations: 0 / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003144/0.007709, allocations: 216.9 kB / 0.9873 GB, free: 12.62 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.909e-06/0.007718, allocations: 3.953 kB / 0.9873 GB, free: 12.62 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.007744, allocations: 15.95 kB / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-05/0.007786, allocations: 4 kB / 0.9873 GB, free: 12.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.007839, allocations: 15.97 kB / 0.9873 GB, free: 12.59 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.00785, allocations: 12.05 kB / 0.9873 GB, free: 12.57 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.723e-05/0.007887, allocations: 87.28 kB / 0.9874 GB, free: 12.49 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.007887, allocations: 0 / 0.9874 GB, free: 12.49 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002164/0.008104, allocations: 20 kB / 0.9874 GB, free: 12.47 MB / 0.948 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 9.833e-05/0.008202, allocations: 103.8 kB / 0.9875 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001946/0.008397, allocations: 83.89 kB / 0.9876 GB, free: 12.28 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.008398, allocations: 3.938 kB / 0.9876 GB, free: 12.27 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.681e-05/0.008485, allocations: 47.92 kB / 0.9876 GB, free: 12.23 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.008677, allocations: 19.98 kB / 0.9877 GB, free: 12.21 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004393/0.009117, allocations: 255.4 kB / 0.9879 GB, free: 11.93 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.098e-05/0.009168, allocations: 79.58 kB / 0.988 GB, free: 11.83 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.888e-05/0.009207, allocations: 16.78 kB / 0.988 GB, free: 11.81 MB / 0.948 GB Notification: Performance of SimCode: time 6.61e-07/0.009207, allocations: 0 / 0.988 GB, free: 11.81 MB / 0.948 GB Notification: Performance of Templates: time 0.002264/0.01147, allocations: 1.197 MB / 0.9892 GB, free: 10.62 MB / 0.948 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: 6.832518115639687]