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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 110 kB / 18.93 MB, free: 2.945 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.001548/0.001548, allocations: 188.2 kB / 22.22 MB, free: 5.164 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.324/1.324, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.899/2.899, allocations: 0.4893 GB / 0.7884 GB, free: 33.19 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=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 0.001844/0.001844, allocations: 62.72 kB / 1.145 GB, free: 30.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.291, allocations: 174.9 MB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002725/0.2937, allocations: 1.589 MB / 1.318 GB, free: 8.129 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0007131/0.2944, allocations: 466.8 kB / 1.318 GB, free: 7.668 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.308e-05/0.2945, allocations: 0 / 1.318 GB, free: 7.668 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.667e-05/0.2945, allocations: 3.938 kB / 1.318 GB, free: 7.664 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.862e-05/0.2946, allocations: 7.875 kB / 1.318 GB, free: 7.656 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.2947, allocations: 31.91 kB / 1.318 GB, free: 7.625 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.2948, allocations: 71.77 kB / 1.318 GB, free: 7.555 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.159e-05/0.2949, allocations: 11.98 kB / 1.318 GB, free: 7.543 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.658e-05/0.295, allocations: 27.92 kB / 1.318 GB, free: 7.516 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.321e-05/0.2951, allocations: 35.89 kB / 1.318 GB, free: 7.48 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.2951, allocations: 8 kB / 1.318 GB, free: 7.473 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.2951, allocations: 8 kB / 1.318 GB, free: 7.465 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.692e-05/0.2952, allocations: 15.92 kB / 1.318 GB, free: 7.449 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.2952, allocations: 31.81 kB / 1.318 GB, free: 7.418 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.2953, allocations: 63.77 kB / 1.318 GB, free: 7.355 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2953, allocations: 0 / 1.318 GB, free: 7.355 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2953, allocations: 0 / 1.318 GB, free: 7.355 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2953, allocations: 0 / 1.318 GB, free: 7.355 MB / 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.0005451/0.2959, allocations: 306.1 kB / 1.319 GB, free: 7.027 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.2959, allocations: 8.031 kB / 1.319 GB, free: 7.02 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.296, allocations: 8.891 kB / 1.319 GB, free: 7.012 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.338e-05/0.296, allocations: 118.4 kB / 1.319 GB, free: 6.871 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.2961, allocations: 4.375 kB / 1.319 GB, free: 6.867 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.2961, allocations: 8.375 kB / 1.319 GB, free: 6.859 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.2963, allocations: 85.89 kB / 1.319 GB, free: 6.77 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2963, allocations: 0 / 1.319 GB, free: 6.77 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2963, allocations: 11.92 kB / 1.319 GB, free: 6.758 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2963, allocations: 4 kB / 1.319 GB, free: 6.754 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.2965, allocations: 43.97 kB / 1.319 GB, free: 6.711 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005203/0.297, allocations: 287.8 kB / 1.319 GB, free: 6.387 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.2972, allocations: 86.56 kB / 1.319 GB, free: 6.293 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.9e-05/0.2973, allocations: 40.83 kB / 1.319 GB, free: 6.25 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.2973, allocations: 4 kB / 1.319 GB, free: 6.246 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.2976, allocations: 111.3 kB / 1.319 GB, free: 6.125 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.2976, allocations: 0 / 1.319 GB, free: 6.125 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0003804/0.298, allocations: 181.5 kB / 1.32 GB, free: 5.941 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.298, allocations: 51.41 kB / 1.32 GB, free: 5.879 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.123e-05/0.2981, allocations: 109.8 kB / 1.32 GB, free: 5.762 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.2981, allocations: 29.7 kB / 1.32 GB, free: 5.727 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.401e-05/0.2982, allocations: 92.36 kB / 1.32 GB, free: 5.633 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.2982, allocations: 27.75 kB / 1.32 GB, free: 5.605 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.2982, allocations: 29.7 kB / 1.32 GB, free: 5.57 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.2984, allocations: 322.8 kB / 1.32 GB, free: 5.246 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.817e-05/0.2985, allocations: 31.98 kB / 1.32 GB, free: 5.215 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.213e-05/0.2986, allocations: 49.7 kB / 1.32 GB, free: 5.16 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.2987, allocations: 65.64 kB / 1.32 GB, free: 5.09 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2987, allocations: 0 / 1.32 GB, free: 5.09 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002082/0.2989, allocations: 113.5 kB / 1.32 GB, free: 4.973 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.2989, allocations: 4 kB / 1.32 GB, free: 4.969 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2989, allocations: 11.94 kB / 1.32 GB, free: 4.957 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2989, allocations: 0 / 1.32 GB, free: 4.957 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.562e-05/0.299, allocations: 15.92 kB / 1.32 GB, free: 4.941 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.299, allocations: 0 / 1.32 GB, free: 4.941 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.97e-05/0.2991, allocations: 12 kB / 1.321 GB, free: 4.93 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.2991, allocations: 0 / 1.321 GB, free: 4.93 MB / 1.014 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 9.812e-05/0.2992, allocations: 130.4 kB / 1.321 GB, free: 4.793 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.2992, allocations: 7.953 kB / 1.321 GB, free: 4.785 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.815e-05/0.2992, allocations: 16.38 kB / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2992, allocations: 0 / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.2992, allocations: 0 / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.2992, allocations: 4 kB / 1.321 GB, free: 4.762 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.2994, allocations: 176.7 kB / 1.321 GB, free: 4.547 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2994, allocations: 4 kB / 1.321 GB, free: 4.543 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.599e-05/0.2995, allocations: 11.94 kB / 1.321 GB, free: 4.531 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2995, allocations: 0 / 1.321 GB, free: 4.531 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2995, allocations: 3.984 kB / 1.321 GB, free: 4.527 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.2995, allocations: 4 kB / 1.321 GB, free: 4.523 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2995, allocations: 4 kB / 1.321 GB, free: 4.52 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003764/0.2999, allocations: 209.6 kB / 1.321 GB, free: 4.297 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.356e-05/0.2999, allocations: 11.97 kB / 1.321 GB, free: 4.285 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.675e-05/0.2999, allocations: 4 kB / 1.321 GB, free: 4.281 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.448e-05/0.3, allocations: 7.984 kB / 1.321 GB, free: 4.273 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.3001, allocations: 11.98 kB / 1.321 GB, free: 4.262 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.3001, allocations: 8.047 kB / 1.321 GB, free: 4.254 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.782e-05/0.3001, allocations: 95.53 kB / 1.321 GB, free: 4.16 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3001, allocations: 0 / 1.321 GB, free: 4.16 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001943/0.3003, allocations: 23.98 kB / 1.321 GB, free: 4.137 MB / 1.014 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.0001078/0.3004, allocations: 97.33 kB / 1.321 GB, free: 4.035 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002308/0.3007, allocations: 99.7 kB / 1.321 GB, free: 3.938 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3007, allocations: 0 / 1.321 GB, free: 3.938 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3008, allocations: 51.97 kB / 1.321 GB, free: 3.887 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.3009, allocations: 13.94 kB / 1.321 GB, free: 3.875 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004772/0.3014, allocations: 269.7 kB / 1.322 GB, free: 3.586 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.3017, allocations: 0.6929 MB / 1.322 GB, free: 2.867 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.223e-05/0.3017, allocations: 4.672 kB / 1.322 GB, free: 2.863 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.3018, allocations: 15.42 kB / 1.322 GB, free: 2.848 MB / 1.014 GB Notification: Performance of SimCode: time 3.1e-07/0.3018, allocations: 4 kB / 1.322 GB, free: 2.844 MB / 1.014 GB Notification: Performance of Templates: time 0.003498/0.3053, allocations: 1.13 MB / 1.324 GB, free: 1.723 MB / 1.014 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: 7.988697224296629]