Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.001603/0.001603, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001916/0.001916, allocations: 185.1 kB / 22.22 MB, free: 5.105 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.526/1.526, allocations: 225.6 MB / 251 MB, free: 13.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.701/2.701, allocations: 443.5 MB / 0.7321 GB, free: 12.43 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/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_10_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_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 71.86 kB / 1.061 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8164/0.8184, allocations: 160.8 MB / 1.218 GB, free: 3.797 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003174/0.8215, allocations: 1.599 MB / 1.22 GB, free: 2.551 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008985/0.8224, allocations: 463.8 kB / 1.22 GB, free: 2.191 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.929e-05/0.8225, allocations: 1.188 kB / 1.22 GB, free: 2.191 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.692e-05/0.8225, allocations: 3.938 kB / 1.22 GB, free: 2.188 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.972e-05/0.8226, allocations: 9.328 kB / 1.22 GB, free: 2.18 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.8228, allocations: 29.19 kB / 1.221 GB, free: 2.156 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.823, allocations: 72.64 kB / 1.221 GB, free: 2.113 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.8231, allocations: 7.906 kB / 1.221 GB, free: 2.109 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.8232, allocations: 34.22 kB / 1.221 GB, free: 2.09 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.405e-05/0.8233, allocations: 32.59 kB / 1.221 GB, free: 2.066 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.8233, allocations: 6.281 kB / 1.221 GB, free: 2.066 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.021e-05/0.8233, allocations: 10.34 kB / 1.221 GB, free: 2.062 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.935e-05/0.8234, allocations: 22.19 kB / 1.221 GB, free: 2.043 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.8234, allocations: 27.83 kB / 1.221 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.8236, allocations: 70.06 kB / 1.221 GB, free: 1.973 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.8236, allocations: 1.125 kB / 1.221 GB, free: 1.973 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8236, allocations: 0 / 1.221 GB, free: 1.973 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.8236, allocations: 0 / 1.221 GB, free: 1.973 MB / 0.92 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.0006657/0.8242, allocations: 379.7 kB / 1.221 GB, free: 1.582 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.8243, allocations: 9.562 kB / 1.221 GB, free: 1.582 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.147e-05/0.8243, allocations: 13.97 kB / 1.221 GB, free: 1.574 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.8245, allocations: 166.7 kB / 1.221 GB, free: 1.375 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.8245, allocations: 3.125 kB / 1.221 GB, free: 1.375 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.8245, allocations: 6.375 kB / 1.221 GB, free: 1.375 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.8247, allocations: 93.66 kB / 1.221 GB, free: 1.301 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.8247, allocations: 0 / 1.221 GB, free: 1.301 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.8248, allocations: 5.375 kB / 1.221 GB, free: 1.297 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.8248, allocations: 0.9375 kB / 1.221 GB, free: 1.297 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.8249, allocations: 42.69 kB / 1.221 GB, free: 1.277 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.8255, allocations: 320.2 kB / 1.222 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.8258, allocations: 86.48 kB / 1.222 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.608e-05/0.8259, allocations: 36.8 kB / 1.222 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.8259, allocations: 1.188 kB / 1.222 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.8262, allocations: 116.2 kB / 1.222 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.8262, allocations: 0 / 1.222 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004074/0.8266, allocations: 175.6 kB / 1.222 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.8267, allocations: 57.77 kB / 1.222 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.8268, allocations: 116.3 kB / 1.222 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.8268, allocations: 30.67 kB / 1.222 GB, free: 468 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.8268, allocations: 86.56 kB / 1.222 GB, free: 380 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.935e-05/0.8269, allocations: 27.52 kB / 1.222 GB, free: 356 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-05/0.8269, allocations: 26.56 kB / 1.223 GB, free: 332 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001752/0.8271, allocations: 329.2 kB / 1.223 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.43e-05/0.8272, allocations: 28.27 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.347e-05/0.8273, allocations: 49.09 kB / 1.223 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.8274, allocations: 68.3 kB / 1.223 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8274, allocations: 0.9375 kB / 1.223 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002254/0.8277, allocations: 113 kB / 1.223 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.8277, allocations: 9.812 kB / 1.223 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.8277, allocations: 5.328 kB / 1.223 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.8277, allocations: 1.359 kB / 1.223 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.037e-05/0.8278, allocations: 12.64 kB / 1.223 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.8278, allocations: 1.094 kB / 1.223 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.959e-05/0.8279, allocations: 20.02 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-06/0.8279, allocations: 3.156 kB / 1.223 GB, free: 15.8 MB / 0.9356 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.0001118/0.828, allocations: 134.2 kB / 1.223 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.046e-05/0.828, allocations: 16.09 kB / 1.223 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.828, allocations: 13.53 kB / 1.223 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.828, allocations: 2.125 kB / 1.223 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.828, allocations: 0 / 1.223 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.8281, allocations: 1.031 kB / 1.223 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.8283, allocations: 193.7 kB / 1.223 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.8283, allocations: 0 / 1.223 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.114e-05/0.8283, allocations: 15.42 kB / 1.223 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.8283, allocations: 1.094 kB / 1.223 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.8284, allocations: 2.062 kB / 1.223 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8284, allocations: 4 kB / 1.223 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8284, allocations: 1.125 kB / 1.223 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.8288, allocations: 226.9 kB / 1.224 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.746e-05/0.8288, allocations: 83.34 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.8289, allocations: 6.219 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.392e-05/0.8289, allocations: 7.453 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.132e-05/0.829, allocations: 20.62 kB / 1.224 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.829, allocations: 3.562 kB / 1.224 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.625e-05/0.8291, allocations: 90.2 kB / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.8291, allocations: 0 / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002132/0.8293, allocations: 14.91 kB / 1.224 GB, free: 15.06 MB / 0.9356 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.0001256/0.8294, allocations: 105.1 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002666/0.8297, allocations: 89.58 kB / 1.224 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.8297, allocations: 9.062 kB / 1.224 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.8298, allocations: 48.8 kB / 1.224 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.83, allocations: 17.58 kB / 1.224 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005545/0.8306, allocations: 261.5 kB / 1.224 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.8309, allocations: 0.6914 MB / 1.225 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.588e-05/0.831, allocations: 4.016 kB / 1.225 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.831, allocations: 16.84 kB / 1.225 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.831, allocations: 0 / 1.225 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of Templates: time 0.004393/0.8354, allocations: 1.136 MB / 1.226 GB, free: 13.38 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: 8.957111965864897]