Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.0007873/0.0007873, allocations: 80.55 kB / 19.96 MB, free: 4.59 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.001238/0.001238, allocations: 173.2 kB / 23.24 MB, free: 1.312 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.9908/0.9908, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.918/1.918, allocations: 389.6 MB / 0.6343 GB, free: 12.58 MB / 0.6042 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 1.001 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.624e-05, allocations: 6.219 kB / 1.001 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001946/0.001962, allocations: 1.581 MB / 1.002 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0006367/0.002599, allocations: 491.5 kB / 1.003 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.399e-05/0.002663, allocations: 0 / 1.003 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.002692, allocations: 7.922 kB / 1.003 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.722e-05/0.002759, allocations: 15.81 kB / 1.003 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.003007, allocations: 43.89 kB / 1.003 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.003142, allocations: 75.75 kB / 1.003 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.003249, allocations: 8 kB / 1.003 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.003416, allocations: 55.88 kB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.271e-05/0.003489, allocations: 19.92 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.003509, allocations: 4 kB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.804e-05/0.003557, allocations: 23.92 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.943e-05/0.003577, allocations: 11.98 kB / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.003619, allocations: 23.92 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.003756, allocations: 75.8 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.003758, allocations: 3.938 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.42e-07/0.003759, allocations: 0 / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.447e-06/0.003762, allocations: 3.938 kB / 1.003 GB, free: 11.06 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.0004752/0.004238, allocations: 302.1 kB / 1.003 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.004279, allocations: 9.344 kB / 1.003 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.004322, allocations: 38.75 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.004426, allocations: 16.88 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.004599, allocations: 125.7 kB / 1.004 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.004624, allocations: 12.36 kB / 1.004 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.004645, allocations: 4.375 kB / 1.004 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.004795, allocations: 86.14 kB / 1.004 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.004804, allocations: 192 / 1.004 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.004817, allocations: 8.109 kB / 1.004 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.004823, allocations: 4 kB / 1.004 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.335e-05/0.004906, allocations: 43.97 kB / 1.004 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003731/0.005279, allocations: 272 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.005478, allocations: 86.52 kB / 1.004 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.14e-05/0.005529, allocations: 29 kB / 1.004 GB, free: 9.926 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.005546, allocations: 7.984 kB / 1.004 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.005712, allocations: 111.3 kB / 1.004 GB, free: 9.797 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.005714, allocations: 0 / 1.004 GB, free: 9.797 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002723/0.005986, allocations: 185.4 kB / 1.004 GB, free: 9.609 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.006022, allocations: 51.41 kB / 1.004 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.006091, allocations: 117.8 kB / 1.004 GB, free: 9.422 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.006105, allocations: 33.7 kB / 1.005 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.894e-05/0.006144, allocations: 84.38 kB / 1.005 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.833e-05/0.006172, allocations: 31.73 kB / 1.005 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.702e-05/0.006209, allocations: 25.72 kB / 1.005 GB, free: 9.23 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.006315, allocations: 326.8 kB / 1.005 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.257e-05/0.006368, allocations: 27.98 kB / 1.005 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.925e-05/0.006427, allocations: 45.7 kB / 1.005 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.743e-05/0.006524, allocations: 73.62 kB / 1.005 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.006529, allocations: 3.938 kB / 1.005 GB, free: 8.742 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001461/0.006675, allocations: 113.5 kB / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.006691, allocations: 6.344 kB / 1.005 GB, free: 8.621 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.006697, allocations: 4 kB / 1.005 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.006712, allocations: 0 / 1.005 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.586e-05/0.006757, allocations: 15.98 kB / 1.005 GB, free: 8.602 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.006764, allocations: 4 kB / 1.005 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.202e-05/0.006806, allocations: 11.98 kB / 1.005 GB, free: 8.586 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.006813, allocations: 0 / 1.005 GB, free: 8.586 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 7.794e-05/0.006891, allocations: 125.7 kB / 1.005 GB, free: 8.453 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.818e-06/0.0069, allocations: 7.953 kB / 1.005 GB, free: 8.445 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.006925, allocations: 16.42 kB / 1.005 GB, free: 8.43 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.006928, allocations: 4 kB / 1.005 GB, free: 8.426 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.006932, allocations: 0 / 1.005 GB, free: 8.426 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.006936, allocations: 4 kB / 1.005 GB, free: 8.422 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000105/0.007041, allocations: 156.7 kB / 1.006 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.007042, allocations: 0 / 1.006 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.934e-05/0.007081, allocations: 11.98 kB / 1.006 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.007083, allocations: 3.938 kB / 1.006 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.007094, allocations: 8 kB / 1.006 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.007095, allocations: 0 / 1.006 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.007096, allocations: 384 / 1.006 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.007364, allocations: 225.5 kB / 1.006 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 9.328e-06/0.007373, allocations: 11.95 kB / 1.006 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.007392, allocations: 4.031 kB / 1.006 GB, free: 7.949 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.243e-05/0.007424, allocations: 15.92 kB / 1.006 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.007476, allocations: 16 kB / 1.006 GB, free: 7.918 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.007485, allocations: 8 kB / 1.006 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.426e-05/0.00752, allocations: 95.2 kB / 1.006 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.00752, allocations: 0 / 1.006 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001359/0.007656, allocations: 16 kB / 1.006 GB, free: 7.801 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.0004082/0.008064, allocations: 0.7529 MB / 1.007 GB, free: 7.016 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001587/0.008223, allocations: 87.89 kB / 1.007 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-06/0.008224, allocations: 0 / 1.007 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.008565, allocations: 51.91 kB / 1.007 GB, free: 6.879 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.00871, allocations: 12 kB / 1.007 GB, free: 6.867 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.009938, allocations: 1.479 MB / 1.008 GB, free: 5.297 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.113e-05/0.009989, allocations: 75.33 kB / 1.008 GB, free: 5.203 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.503e-05/0.01002, allocations: 12.72 kB / 1.008 GB, free: 5.191 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.01007, allocations: 24.5 kB / 1.008 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of SimCode: time 6.61e-07/0.01007, allocations: 0 / 1.008 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07853/0.08861, allocations: 3.013 MB / 1.011 GB, free: 2.309 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.711, allocations: 6.047 kB / 1.011 GB, free: 2.309 MB / 0.9636 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu) > Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe ; mkfifo Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 ../Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu) > Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.577984436415136]