Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008316/0.0008316, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009346/0.0009346, allocations: 165.9 kB / 22.46 MB, free: 2.109 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.9269/0.9269, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.674/1.674, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.345e-06/2.345e-06, allocations: 0 / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.107e-05/3.341e-05, allocations: 8.891 kB / 0.9505 GB, free: 3.488 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002267/0.002301, allocations: 1.598 MB / 0.9521 GB, free: 1.875 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0006701/0.002971, allocations: 487.3 kB / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.403e-05/0.003035, allocations: 0 / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.896e-05/0.003064, allocations: 3.938 kB / 0.9525 GB, free: 1.391 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.296e-05/0.003127, allocations: 15.92 kB / 0.9526 GB, free: 1.375 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.003383, allocations: 43.83 kB / 0.9526 GB, free: 1.332 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.000123/0.003506, allocations: 75.7 kB / 0.9527 GB, free: 1.258 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.862e-05/0.003604, allocations: 11.98 kB / 0.9527 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.003733, allocations: 51.83 kB / 0.9527 GB, free: 1.195 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.994e-05/0.003793, allocations: 23.91 kB / 0.9527 GB, free: 1.172 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.00381, allocations: 8 kB / 0.9528 GB, free: 1.164 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 3.879e-05/0.003848, allocations: 12 kB / 0.9528 GB, free: 1.152 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.806e-05/0.003866, allocations: 15.97 kB / 0.9528 GB, free: 1.137 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.401e-05/0.0039, allocations: 27.92 kB / 0.9528 GB, free: 1.109 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.004019, allocations: 71.81 kB / 0.9529 GB, free: 1.039 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.004021, allocations: 0 / 0.9529 GB, free: 1.039 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.262e-06/0.004023, allocations: 4 kB / 0.9529 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.004026, allocations: 0 / 0.9529 GB, free: 1.035 MB / 0.9011 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.0004187/0.004445, allocations: 302 kB / 0.9532 GB, free: 0.7109 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.004484, allocations: 12.03 kB / 0.9532 GB, free: 0.6992 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.004515, allocations: 38.73 kB / 0.9532 GB, free: 0.6523 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.706e-05/0.004612, allocations: 24.88 kB / 0.9532 GB, free: 0.6289 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.004775, allocations: 121.7 kB / 0.9534 GB, free: 496 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.004793, allocations: 4.375 kB / 0.9534 GB, free: 492 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.004814, allocations: 12.38 kB / 0.9534 GB, free: 480 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.004947, allocations: 82.19 kB / 0.9535 GB, free: 392 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.004954, allocations: 192 / 0.9535 GB, free: 392 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.004964, allocations: 4.125 kB / 0.9535 GB, free: 388 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.004968, allocations: 0 / 0.9535 GB, free: 388 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.125e-05/0.005049, allocations: 47.91 kB / 0.9535 GB, free: 340 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003649/0.005414, allocations: 275.9 kB / 0.9538 GB, free: 20 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.005618, allocations: 86.55 kB / 0.9538 GB, free: 15.92 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.233e-05/0.00567, allocations: 40.91 kB / 0.9539 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.005683, allocations: 0 / 0.9539 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.005846, allocations: 115.4 kB / 0.954 GB, free: 15.76 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=11): time 8.92e-07/0.005847, allocations: 4 kB / 0.954 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11): time 0.0002715/0.006119, allocations: 169.5 kB / 0.9542 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.006155, allocations: 55.41 kB / 0.9542 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.687e-05/0.006212, allocations: 117.8 kB / 0.9543 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.006225, allocations: 25.7 kB / 0.9544 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.006259, allocations: 96.3 kB / 0.9544 GB, free: 15.26 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.006285, allocations: 23.81 kB / 0.9545 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.00632, allocations: 29.7 kB / 0.9545 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.006457, allocations: 314.8 kB / 0.9548 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.768e-05/0.006505, allocations: 39.97 kB / 0.9548 GB, free: 14.85 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.252e-05/0.006558, allocations: 51.95 kB / 0.9549 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.91e-05/0.006637, allocations: 57.7 kB / 0.9549 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.006639, allocations: 3.938 kB / 0.9549 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.00012/0.006759, allocations: 125.9 kB / 0.9551 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.006771, allocations: 4 kB / 0.9551 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.006775, allocations: 0 / 0.9551 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.006785, allocations: 48 / 0.9551 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.265e-05/0.006828, allocations: 23.91 kB / 0.9551 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.006833, allocations: 4 kB / 0.9551 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.732e-05/0.00687, allocations: 11.89 kB / 0.9551 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.006877, allocations: 4 kB / 0.9551 GB, free: 14.55 MB / 0.9167 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.403e-05/0.006941, allocations: 125.8 kB / 0.9552 GB, free: 14.42 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.004e-05/0.006951, allocations: 7.953 kB / 0.9552 GB, free: 14.41 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.082e-05/0.006972, allocations: 12.44 kB / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.006974, allocations: 0 / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.006978, allocations: 0 / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.006981, allocations: 0 / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.751e-05/0.007079, allocations: 172.6 kB / 0.9554 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.00708, allocations: 0 / 0.9554 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-05/0.007115, allocations: 8 kB / 0.9554 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.007116, allocations: 3.938 kB / 0.9554 GB, free: 14.17 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.007125, allocations: 3.984 kB / 0.9554 GB, free: 14.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.007126, allocations: 3.938 kB / 0.9554 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.007127, allocations: 0 / 0.9554 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.007355, allocations: 217 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.714e-06/0.007363, allocations: 8.359 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.00738, allocations: 7.984 kB / 0.9557 GB, free: 13.92 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.798e-05/0.007408, allocations: 8.062 kB / 0.9557 GB, free: 13.91 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.007451, allocations: 15.97 kB / 0.9557 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.007459, allocations: 11.92 kB / 0.9557 GB, free: 13.88 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.949e-05/0.007488, allocations: 87.28 kB / 0.9558 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007488, allocations: 0 / 0.9558 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001318/0.00762, allocations: 27.92 kB / 0.9558 GB, free: 13.77 MB / 0.9167 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.0005099/0.00813, allocations: 0.7568 MB / 0.9565 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001386/0.008269, allocations: 83.91 kB / 0.9566 GB, free: 12.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.00827, allocations: 0 / 0.9566 GB, free: 12.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.34e-05/0.008334, allocations: 55.91 kB / 0.9567 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.008473, allocations: 11.98 kB / 0.9567 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.009484, allocations: 1.475 MB / 0.9581 GB, free: 11.27 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.293e-05/0.009527, allocations: 75.33 kB / 0.9582 GB, free: 11.18 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.009559, allocations: 8.734 kB / 0.9582 GB, free: 11.17 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.009607, allocations: 28.48 kB / 0.9582 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of SimCode: time 5.71e-07/0.009607, allocations: 0 / 0.9582 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0147/0.02431, allocations: 3.028 MB / 0.9612 GB, free: 8.281 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.127, allocations: 4.062 kB / 0.9612 GB, free: 8.277 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 11.1997124645859]