Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007195/0.0007195, 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.0007999/0.0007999, allocations: 169.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.87/0.87, 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 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.653/1.653, allocations: 377.8 MB / 0.6221 GB, free: 8.648 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 0.981 GB, free: 2.543 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.935e-05, allocations: 2.281 kB / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001825/0.001844, allocations: 1.582 MB / 0.9825 GB, free: 0.9453 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006673/0.002511, allocations: 482.8 kB / 0.983 GB, free: 480 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.065e-05/0.002572, allocations: 7.938 kB / 0.983 GB, free: 472 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.002603, allocations: 7.922 kB / 0.983 GB, free: 464 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.085e-05/0.002663, allocations: 3.938 kB / 0.983 GB, free: 460 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.002898, allocations: 43.77 kB / 0.983 GB, free: 416 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.003007, allocations: 79.81 kB / 0.9831 GB, free: 336 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.302e-05/0.0031, allocations: 4 kB / 0.9831 GB, free: 332 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.003234, allocations: 55.83 kB / 0.9832 GB, free: 276 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.276e-05/0.003307, allocations: 23.91 kB / 0.9832 GB, free: 252 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.003325, allocations: 8 kB / 0.9832 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 4.29e-05/0.003368, allocations: 8 kB / 0.9832 GB, free: 236 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.003387, allocations: 19.97 kB / 0.9832 GB, free: 216 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.508e-05/0.003422, allocations: 23.92 kB / 0.9833 GB, free: 192 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.003563, allocations: 75.73 kB / 0.9833 GB, free: 116 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.003565, allocations: 4 kB / 0.9833 GB, free: 112 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.313e-06/0.003567, allocations: 4 kB / 0.9833 GB, free: 108 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.003572, allocations: 0 / 0.9833 GB, free: 108 kB / 0.9323 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.0004939/0.004066, allocations: 306 kB / 0.9836 GB, free: 15.78 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.004114, allocations: 12.02 kB / 0.9836 GB, free: 15.77 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.703e-05/0.004151, allocations: 30.75 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.004266, allocations: 20.92 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.004451, allocations: 125.7 kB / 0.9838 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.004475, allocations: 4.375 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.004499, allocations: 16.36 kB / 0.9838 GB, free: 15.54 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.004647, allocations: 86.14 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.004654, allocations: 192 / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.004667, allocations: 4.125 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.004672, allocations: 0 / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.636e-05/0.004758, allocations: 47.91 kB / 0.984 GB, free: 15.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004012/0.00516, allocations: 275.8 kB / 0.9842 GB, free: 15.09 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.005377, allocations: 90.47 kB / 0.9843 GB, free: 14.99 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.121e-05/0.005429, allocations: 33 kB / 0.9843 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.005445, allocations: 0 / 0.9843 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001774/0.005622, allocations: 123.3 kB / 0.9845 GB, free: 14.82 MB / 0.948 GB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.005624, allocations: 0 / 0.9845 GB, free: 14.82 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.000279/0.005903, allocations: 173.5 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.005943, allocations: 55.41 kB / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.752e-05/0.006011, allocations: 117.8 kB / 0.9848 GB, free: 14.45 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.006025, allocations: 29.7 kB / 0.9848 GB, free: 14.42 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.006069, allocations: 88.38 kB / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.006097, allocations: 27.8 kB / 0.9849 GB, free: 14.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.006134, allocations: 29.66 kB / 0.985 GB, free: 14.27 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.006232, allocations: 322.8 kB / 0.9853 GB, free: 13.94 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.254e-05/0.006285, allocations: 27.98 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.446e-05/0.006339, allocations: 49.7 kB / 0.9853 GB, free: 13.86 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.541e-05/0.006424, allocations: 69.62 kB / 0.9854 GB, free: 13.79 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.006428, allocations: 7.938 kB / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001237/0.006551, allocations: 109.6 kB / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.006564, allocations: 4 kB / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.006569, allocations: 0 / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.00658, allocations: 0 / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.538e-05/0.006626, allocations: 16.36 kB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.006631, allocations: 3.938 kB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.096e-05/0.006672, allocations: 19.88 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.00668, allocations: 4 kB / 0.9856 GB, free: 13.62 MB / 0.948 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.155e-05/0.006741, allocations: 125.7 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/0.00675, allocations: 7.953 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.028e-05/0.006771, allocations: 16.44 kB / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.006773, allocations: 0 / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.006777, allocations: 7.922 kB / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.00678, allocations: 0 / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.407e-05/0.006874, allocations: 160.7 kB / 0.9859 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.006875, allocations: 0 / 0.9859 GB, free: 13.25 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.651e-05/0.006911, allocations: 11.98 kB / 0.9859 GB, free: 13.24 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.006912, allocations: 0 / 0.9859 GB, free: 13.24 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.006922, allocations: 12 kB / 0.9859 GB, free: 13.23 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.006923, allocations: 3.938 kB / 0.9859 GB, free: 13.23 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.006924, allocations: 4 kB / 0.9859 GB, free: 13.22 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.007168, allocations: 213.5 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-06/0.007177, allocations: 11.92 kB / 0.9861 GB, free: 12.98 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.007193, allocations: 0 / 0.9861 GB, free: 12.98 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.103e-05/0.007224, allocations: 11.98 kB / 0.9861 GB, free: 12.97 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.684e-05/0.007271, allocations: 15.97 kB / 0.9861 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.007281, allocations: 8 kB / 0.9862 GB, free: 12.95 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.292e-05/0.007314, allocations: 87.33 kB / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007314, allocations: 0 / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001327/0.007447, allocations: 20 kB / 0.9863 GB, free: 12.84 MB / 0.948 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.000756/0.008203, allocations: 0.7637 MB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.008361, allocations: 87.83 kB / 0.9871 GB, free: 11.97 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.008362, allocations: 0 / 0.9871 GB, free: 11.97 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.322e-05/0.008425, allocations: 51.98 kB / 0.9871 GB, free: 11.92 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.008573, allocations: 19.97 kB / 0.9872 GB, free: 11.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.009588, allocations: 1.466 MB / 0.9886 GB, free: 10.34 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.184e-05/0.00963, allocations: 79.58 kB / 0.9887 GB, free: 10.25 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.009663, allocations: 9 kB / 0.9887 GB, free: 10.24 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.349e-05/0.009706, allocations: 20.5 kB / 0.9887 GB, free: 10.22 MB / 0.948 GB Notification: Performance of SimCode: time 5.11e-07/0.009707, allocations: 0 / 0.9887 GB, free: 10.22 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0154/0.0251, allocations: 3.019 MB / 0.9916 GB, free: 7.359 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.732/6.757, allocations: 10.38 kB / 0.9916 GB, free: 7.352 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.63010875415057]