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.001257/0.001257, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001494/0.001494, allocations: 217.6 kB / 23.03 MB, free: 4.945 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.378/1.378, allocations: 230.6 MB / 256.8 MB, free: 7.797 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 3.077/3.077, allocations: 0.5003 GB / 0.8062 GB, free: 28.3 MB / 0.6231 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.003078/0.003078, allocations: 61.56 kB / 1.171 GB, free: 19.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3472, allocations: 179 MB / 1.345 GB, free: 15.97 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002923/0.3501, allocations: 1.581 MB / 1.347 GB, free: 14.37 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0009708/0.3511, allocations: 478.9 kB / 1.347 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.267e-05/0.3512, allocations: 7.938 kB / 1.347 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.931e-05/0.3512, allocations: 3.938 kB / 1.347 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.812e-05/0.3513, allocations: 7.875 kB / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002496/0.3515, allocations: 47.88 kB / 1.347 GB, free: 13.83 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.3517, allocations: 71.78 kB / 1.347 GB, free: 13.76 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.176e-05/0.3517, allocations: 7.984 kB / 1.347 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.3519, allocations: 39.91 kB / 1.347 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.158e-05/0.352, allocations: 39.84 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.352, allocations: 4 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.75e-05/0.352, allocations: 12 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.3521, allocations: 19.91 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.143e-05/0.3521, allocations: 23.88 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3523, allocations: 72.05 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3523, allocations: 0 / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3523, allocations: 0 / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.3523, allocations: 0 / 1.348 GB, free: 13.55 MB / 1.045 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.0005837/0.3528, allocations: 306.1 kB / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3529, allocations: 8.031 kB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.792e-05/0.3529, allocations: 4.188 kB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/0.3529, allocations: 38.73 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.3531, allocations: 24.81 kB / 1.348 GB, free: 13.14 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.3533, allocations: 122.4 kB / 1.348 GB, free: 12.99 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.3533, allocations: 4.375 kB / 1.348 GB, free: 12.99 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.3534, allocations: 8.375 kB / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.3536, allocations: 85.56 kB / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.3536, allocations: 0 / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.3536, allocations: 8 kB / 1.348 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3536, allocations: 0 / 1.348 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001394/0.3537, allocations: 43.97 kB / 1.348 GB, free: 12.84 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005383/0.3543, allocations: 279.7 kB / 1.349 GB, free: 12.52 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.3546, allocations: 82.53 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.785e-05/0.3547, allocations: 44.98 kB / 1.349 GB, free: 12.39 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.3547, allocations: 11.92 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.3549, allocations: 115.4 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.3549, allocations: 0 / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0004201/0.3553, allocations: 169.5 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.3554, allocations: 55.41 kB / 1.349 GB, free: 12.01 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.131e-05/0.3555, allocations: 113.8 kB / 1.349 GB, free: 11.89 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.3555, allocations: 25.7 kB / 1.349 GB, free: 11.86 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.821e-05/0.3556, allocations: 92.36 kB / 1.349 GB, free: 11.77 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.3556, allocations: 35.75 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.3557, allocations: 29.7 kB / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3558, allocations: 318.8 kB / 1.35 GB, free: 11.38 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.335e-05/0.3559, allocations: 35.92 kB / 1.35 GB, free: 11.34 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.002e-05/0.356, allocations: 45.7 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.3561, allocations: 70.08 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3561, allocations: 0 / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002221/0.3564, allocations: 121.5 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3564, allocations: 8 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3564, allocations: 0 / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3564, allocations: 0 / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.456e-05/0.3565, allocations: 11.98 kB / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3565, allocations: 4 kB / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.701e-05/0.3565, allocations: 15.89 kB / 1.35 GB, free: 11.05 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.3566, allocations: 8 kB / 1.35 GB, free: 11.04 MB / 1.045 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.0001125/0.3567, allocations: 123.8 kB / 1.35 GB, free: 10.91 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.3567, allocations: 8 kB / 1.35 GB, free: 10.91 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.3567, allocations: 12.38 kB / 1.35 GB, free: 10.89 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3567, allocations: 0 / 1.35 GB, free: 10.89 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.3567, allocations: 0 / 1.35 GB, free: 10.89 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.3567, allocations: 0 / 1.35 GB, free: 10.89 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.3569, allocations: 168.6 kB / 1.35 GB, free: 10.69 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.3569, allocations: 4 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.039e-05/0.357, allocations: 4 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.357, allocations: 4.375 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.357, allocations: 3.984 kB / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.357, allocations: 0 / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.357, allocations: 7.938 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004044/0.3574, allocations: 220.8 kB / 1.35 GB, free: 10.43 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.731e-05/0.3574, allocations: 15.92 kB / 1.35 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.3575, allocations: 3.984 kB / 1.35 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.953e-05/0.3575, allocations: 7.984 kB / 1.35 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.3576, allocations: 11.98 kB / 1.35 GB, free: 10.39 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.3576, allocations: 7.984 kB / 1.35 GB, free: 10.38 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.777e-05/0.3577, allocations: 87.28 kB / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3577, allocations: 0 / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002028/0.3579, allocations: 31.98 kB / 1.351 GB, free: 10.27 MB / 1.045 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.0007221/0.3586, allocations: 0.749 MB / 1.351 GB, free: 9.488 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3588, allocations: 91.83 kB / 1.351 GB, free: 9.398 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3588, allocations: 0 / 1.351 GB, free: 9.398 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3589, allocations: 44.53 kB / 1.351 GB, free: 9.355 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.3591, allocations: 15.98 kB / 1.351 GB, free: 9.34 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.3608, allocations: 1.516 MB / 1.353 GB, free: 7.742 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.773e-05/0.3609, allocations: 83.08 kB / 1.353 GB, free: 7.641 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.397e-05/0.3609, allocations: 4.672 kB / 1.353 GB, free: 7.637 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.335e-05/0.361, allocations: 23.42 kB / 1.353 GB, free: 7.613 MB / 1.045 GB Notification: Performance of SimCode: time 3.2e-07/0.361, allocations: 0 / 1.353 GB, free: 7.613 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02502/0.386, allocations: 2.541 MB / 1.356 GB, free: 5.215 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.56, allocations: 11.91 kB / 1.356 GB, free: 5.207 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.00424009701237]