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.001522/0.001522, allocations: 122.8 kB / 17.17 MB, free: 5.922 MB / 14.72 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.001625/0.001625, allocations: 206.2 kB / 20.13 MB, free: 2.98 MB / 14.72 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 1.443/1.443, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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 2.86/2.86, allocations: 0.5003 GB / 0.8026 GB, free: 6.754 MB / 0.6387 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 69.62 kB / 1.165 GB, free: 496 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9035/0.9055, allocations: 178.9 MB / 1.34 GB, free: 16.27 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002691/0.9082, allocations: 1.603 MB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007898/0.909, allocations: 0.5023 MB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.084e-05/0.909, allocations: 3.938 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.9091, allocations: 5.156 kB / 1.342 GB, free: 14.78 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.798e-05/0.9091, allocations: 19.39 kB / 1.342 GB, free: 14.77 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.9094, allocations: 41.06 kB / 1.342 GB, free: 14.74 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.9095, allocations: 71.27 kB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.66e-05/0.9096, allocations: 10.34 kB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.9097, allocations: 36.95 kB / 1.342 GB, free: 14.69 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.419e-05/0.9098, allocations: 36.2 kB / 1.342 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.802e-05/0.9098, allocations: 6.594 kB / 1.342 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.584e-05/0.9098, allocations: 12.61 kB / 1.342 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.075e-05/0.9098, allocations: 19.09 kB / 1.342 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.9099, allocations: 27.22 kB / 1.342 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.91, allocations: 74.89 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.91, allocations: 0 / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.363e-06/0.91, allocations: 0 / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.038e-05/0.91, allocations: 1.281 kB / 1.343 GB, free: 14.61 MB / 1.061 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.0004856/0.9105, allocations: 373.7 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.9106, allocations: 9.375 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.27e-05/0.9106, allocations: 6.25 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.612e-05/0.9106, allocations: 39.11 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.9107, allocations: 17.58 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.9109, allocations: 192 kB / 1.343 GB, free: 13.97 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.9109, allocations: 5.266 kB / 1.343 GB, free: 13.97 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.911, allocations: 12.95 kB / 1.343 GB, free: 13.96 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.9112, allocations: 82.5 kB / 1.343 GB, free: 13.92 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.9112, allocations: 0 / 1.343 GB, free: 13.92 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.9112, allocations: 6.875 kB / 1.343 GB, free: 13.91 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.9112, allocations: 1.406 kB / 1.343 GB, free: 13.91 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.9113, allocations: 54.69 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005003/0.9118, allocations: 316.5 kB / 1.344 GB, free: 13.59 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002608/0.9121, allocations: 84.22 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.515e-05/0.9122, allocations: 38.45 kB / 1.344 GB, free: 13.53 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.9122, allocations: 4.734 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.9124, allocations: 109.3 kB / 1.344 GB, free: 13.46 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.9124, allocations: 0 / 1.344 GB, free: 13.46 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0003788/0.9128, allocations: 175.3 kB / 1.344 GB, free: 13.38 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.9128, allocations: 54.77 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.453e-05/0.9129, allocations: 113.4 kB / 1.344 GB, free: 13.21 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.9129, allocations: 31.08 kB / 1.344 GB, free: 13.18 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.702e-05/0.9129, allocations: 86.97 kB / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/0.9129, allocations: 34.45 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.913, allocations: 30.58 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.478e-05/0.913, allocations: 327 kB / 1.345 GB, free: 12.72 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.229e-05/0.9131, allocations: 28.62 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.97e-05/0.9132, allocations: 49.05 kB / 1.345 GB, free: 12.68 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.9133, allocations: 65.36 kB / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.9133, allocations: 0 / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001894/0.9135, allocations: 120 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.9135, allocations: 7.531 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.9135, allocations: 5.688 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.9135, allocations: 1.344 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.9136, allocations: 15.77 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.9136, allocations: 1.281 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.872e-05/0.9137, allocations: 19.02 kB / 1.345 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.138e-06/0.9137, allocations: 2.906 kB / 1.345 GB, free: 12.56 MB / 1.061 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 6.504e-05/0.9138, allocations: 126.1 kB / 1.345 GB, free: 12.44 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.9138, allocations: 13.3 kB / 1.345 GB, free: 12.43 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.9138, allocations: 11.09 kB / 1.345 GB, free: 12.42 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.9138, allocations: 1.312 kB / 1.345 GB, free: 12.42 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.9138, allocations: 0 / 1.345 GB, free: 12.42 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.9138, allocations: 0.6094 kB / 1.345 GB, free: 12.42 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.9139, allocations: 200.8 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.9139, allocations: 0 / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.914, allocations: 13.75 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.914, allocations: 1.547 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.914, allocations: 2.359 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.914, allocations: 0.875 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.914, allocations: 5.406 kB / 1.345 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.9144, allocations: 216 kB / 1.346 GB, free: 12.08 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2e-05/0.9144, allocations: 83.88 kB / 1.346 GB, free: 11.98 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.9144, allocations: 11.73 kB / 1.346 GB, free: 11.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.055e-05/0.9145, allocations: 6.453 kB / 1.346 GB, free: 11.98 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.9145, allocations: 15.17 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.9146, allocations: 9.828 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.977e-05/0.9146, allocations: 90 kB / 1.346 GB, free: 11.89 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9146, allocations: 0 / 1.346 GB, free: 11.89 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001977/0.9148, allocations: 27.17 kB / 1.346 GB, free: 11.88 MB / 1.061 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.0004761/0.9153, allocations: 0.752 MB / 1.346 GB, free: 11.23 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.9155, allocations: 84.84 kB / 1.347 GB, free: 11.21 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9155, allocations: 0 / 1.347 GB, free: 11.21 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.9156, allocations: 56 kB / 1.347 GB, free: 11.19 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.9158, allocations: 9.547 kB / 1.347 GB, free: 11.19 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.917, allocations: 1.512 MB / 1.348 GB, free: 9.891 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.839e-05/0.9171, allocations: 0.6943 MB / 1.349 GB, free: 9.191 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.306e-05/0.9171, allocations: 6.812 kB / 1.349 GB, free: 9.191 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.861e-05/0.9172, allocations: 27.61 kB / 1.349 GB, free: 9.172 MB / 1.061 GB Notification: Performance of SimCode: time 2.81e-07/0.9172, allocations: 0 / 1.349 GB, free: 9.172 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.937, allocations: 2.355 MB / 1.351 GB, free: 8.746 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.533/9.47, allocations: 2.875 kB / 1.351 GB, free: 8.746 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 15.580361947009806]