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.0007914/0.0007914, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008613/0.0008613, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.8454/0.8454, allocations: 177.1 MB / 202.8 MB, free: 5.762 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.725/1.725, allocations: 389 MB / 0.633 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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.068e-05/1.206e-05, allocations: 5.234 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001676/0.001688, allocations: 1.574 MB / 1.001 GB, free: 11.9 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0005776/0.002266, allocations: 491.5 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.752e-05/0.002313, allocations: 0 / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.29e-05/0.002336, allocations: 11.88 kB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.992e-05/0.002386, allocations: 7.875 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.002586, allocations: 47.8 kB / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.982e-05/0.002686, allocations: 71.78 kB / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.017e-05/0.002766, allocations: 8 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.002879, allocations: 55.88 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.45e-05/0.002933, allocations: 23.95 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.002949, allocations: 8 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.002984, allocations: 8 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.003002, allocations: 19.92 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.11e-05/0.003033, allocations: 19.98 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.00315, allocations: 75.69 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.003151, allocations: 4 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.71e-07/0.003152, allocations: 0 / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.003155, allocations: 4 kB / 1.002 GB, free: 11.05 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.0003761/0.003531, allocations: 306.1 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.003565, allocations: 12.75 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.545e-05/0.00359, allocations: 30.75 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.381e-05/0.003674, allocations: 20.88 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.003811, allocations: 125.8 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.003828, allocations: 4.375 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.003852, allocations: 12.33 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.003976, allocations: 90.14 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.003983, allocations: 192 / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.003995, allocations: 8.109 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.003999, allocations: 0 / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.65e-05/0.004085, allocations: 43.97 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003302/0.004416, allocations: 267.9 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.004588, allocations: 86.52 kB / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.756e-05/0.004635, allocations: 44.77 kB / 1.003 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.004648, allocations: 0 / 1.003 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.004793, allocations: 115.3 kB / 1.003 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 9.72e-07/0.004794, allocations: 3.938 kB / 1.003 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002579/0.005051, allocations: 173.8 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.005087, allocations: 59.34 kB / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.245e-05/0.00514, allocations: 113.8 kB / 1.003 GB, free: 9.406 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.005152, allocations: 29.7 kB / 1.004 GB, free: 9.371 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.005428, allocations: 92.33 kB / 1.004 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.005455, allocations: 31.94 kB / 1.004 GB, free: 9.242 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.005489, allocations: 29.7 kB / 1.004 GB, free: 9.207 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.528e-05/0.005554, allocations: 318.8 kB / 1.004 GB, free: 8.887 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.552e-05/0.005599, allocations: 27.98 kB / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.074e-05/0.00565, allocations: 49.69 kB / 1.004 GB, free: 8.805 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.793e-05/0.005728, allocations: 65.69 kB / 1.004 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.005731, allocations: 7.938 kB / 1.004 GB, free: 8.727 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001173/0.005848, allocations: 117.5 kB / 1.004 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.005861, allocations: 7.984 kB / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.005865, allocations: 48 / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.005876, allocations: 3.984 kB / 1.004 GB, free: 8.594 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.855e-05/0.005915, allocations: 12 kB / 1.004 GB, free: 8.582 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.00592, allocations: 3.984 kB / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.779e-05/0.005957, allocations: 15.92 kB / 1.004 GB, free: 8.562 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.005967, allocations: 4 kB / 1.004 GB, free: 8.559 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 6.904e-05/0.006036, allocations: 127.4 kB / 1.004 GB, free: 8.426 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.006047, allocations: 11.94 kB / 1.004 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.929e-05/0.006066, allocations: 16.44 kB / 1.004 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.006068, allocations: 0 / 1.004 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.006072, allocations: 0 / 1.004 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.006075, allocations: 0 / 1.004 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.106e-05/0.006166, allocations: 156.7 kB / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.006167, allocations: 0 / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.558e-05/0.006203, allocations: 11.98 kB / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.006204, allocations: 0 / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.006213, allocations: 8 kB / 1.005 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.006214, allocations: 384 / 1.005 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.006214, allocations: 4 kB / 1.005 GB, free: 8.18 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.006436, allocations: 220.8 kB / 1.005 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-06/0.006444, allocations: 7.984 kB / 1.005 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.006458, allocations: 3.938 kB / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.955e-05/0.006487, allocations: 11.98 kB / 1.005 GB, free: 7.922 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.006526, allocations: 15.97 kB / 1.005 GB, free: 7.906 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.006533, allocations: 8 kB / 1.005 GB, free: 7.898 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.782e-05/0.006561, allocations: 83.33 kB / 1.005 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006561, allocations: 4 kB / 1.005 GB, free: 7.812 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001282/0.006689, allocations: 20 kB / 1.005 GB, free: 7.793 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 0.0003725/0.007062, allocations: 0.7567 MB / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001348/0.007197, allocations: 88.22 kB / 1.006 GB, free: 6.918 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.007198, allocations: 0 / 1.006 GB, free: 6.918 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.176e-05/0.007259, allocations: 55.89 kB / 1.006 GB, free: 6.863 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.007393, allocations: 26.11 kB / 1.006 GB, free: 6.84 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009674/0.00836, allocations: 1.48 MB / 1.007 GB, free: 5.27 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.064e-05/0.008401, allocations: 80.22 kB / 1.007 GB, free: 5.172 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.926e-05/0.00843, allocations: 4.734 kB / 1.007 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.954e-05/0.00847, allocations: 24.48 kB / 1.007 GB, free: 5.145 MB / 0.9636 GB Notification: Performance of SimCode: time 4.31e-07/0.00847, allocations: 0 / 1.007 GB, free: 5.145 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0172/0.02567, allocations: 2.994 MB / 1.01 GB, free: 2.297 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.487/6.513, allocations: 10.12 kB / 1.01 GB, free: 2.289 MB / 0.9636 GB " [Timeout remaining time 293] (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/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: 10.374804803170264]