Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006674/0.006674, allocations: 102.3 kB / 15.73 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 195.2 kB / 16.68 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.007/2.007, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 67.89 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6252/0.6263, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002091/0.6285, allocations: 1.568 MB / 1.089 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005284/0.629, allocations: 454.6 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.615e-05/0.629, allocations: 0.9375 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.6291, allocations: 5.062 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.329e-05/0.6291, allocations: 11.02 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.6293, allocations: 29.44 kB / 1.089 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.587e-05/0.6294, allocations: 65.69 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.6295, allocations: 19.67 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.174e-05/0.6296, allocations: 29.44 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.6297, allocations: 31.81 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.6297, allocations: 11.22 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.313e-05/0.6297, allocations: 6.469 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.6297, allocations: 22.17 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.352e-05/0.6298, allocations: 26.56 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.953e-05/0.6299, allocations: 72.89 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.6299, allocations: 0 / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/0.6299, allocations: 0 / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.6299, allocations: 5.312 kB / 1.09 GB, free: 3.703 MB / 0.8575 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.0004306/0.6304, allocations: 368.8 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.6304, allocations: 9.219 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.891e-05/0.6304, allocations: 37.73 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.937e-05/0.6305, allocations: 6.5 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.673e-05/0.6305, allocations: 172.7 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.6305, allocations: 4.203 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.6306, allocations: 9.672 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.6307, allocations: 90.64 kB / 1.09 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.6308, allocations: 0.5625 kB / 1.09 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.6308, allocations: 1.891 kB / 1.09 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.6308, allocations: 1.125 kB / 1.09 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.6309, allocations: 43.72 kB / 1.09 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004236/0.6313, allocations: 320 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.6316, allocations: 101.5 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.392e-05/0.6317, allocations: 46.78 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.6317, allocations: 1.828 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.6319, allocations: 127.3 kB / 1.091 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.6319, allocations: 0 / 1.091 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003445/0.6323, allocations: 173.2 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.512e-05/0.6323, allocations: 52.53 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.068e-05/0.6324, allocations: 108.5 kB / 1.091 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.6324, allocations: 31.23 kB / 1.091 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.686e-05/0.6324, allocations: 88.09 kB / 1.091 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.6325, allocations: 33.86 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.6325, allocations: 29.16 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.704e-05/0.6325, allocations: 323.1 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.579e-05/0.6326, allocations: 28.59 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.016e-05/0.6327, allocations: 49.42 kB / 1.092 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.6328, allocations: 73.64 kB / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6328, allocations: 4 kB / 1.092 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001893/0.633, allocations: 107.8 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.6331, allocations: 5.812 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.6331, allocations: 0.6562 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.6331, allocations: 1.375 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.282e-05/0.6332, allocations: 11.94 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.6332, allocations: 1.531 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.926e-05/0.6333, allocations: 14.81 kB / 1.092 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.6333, allocations: 7.984 kB / 1.092 GB, free: 1.676 MB / 0.8575 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 5.728e-05/0.6333, allocations: 123.4 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.6334, allocations: 8.766 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.6334, allocations: 19.06 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.6334, allocations: 1.406 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6334, allocations: 0.7188 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.6334, allocations: 0.75 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.6335, allocations: 207.8 kB / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6335, allocations: 0 / 1.092 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.325e-05/0.6336, allocations: 13.84 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.6336, allocations: 1.422 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.6336, allocations: 2.891 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6336, allocations: 0.6875 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6336, allocations: 0.75 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003513/0.634, allocations: 221.2 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.733e-05/0.634, allocations: 80.19 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.6341, allocations: 11.2 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.6341, allocations: 7.078 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.6342, allocations: 15.59 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.6342, allocations: 4.844 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.685e-05/0.6342, allocations: 88.69 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6342, allocations: 0 / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001966/0.6344, allocations: 24.42 kB / 1.093 GB, free: 0.9883 MB / 0.8575 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.0004683/0.6349, allocations: 0.7592 MB / 1.094 GB, free: 340 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002065/0.6351, allocations: 83.28 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6351, allocations: 0.7188 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.6353, allocations: 66.91 kB / 1.094 GB, free: 296 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001817/0.6354, allocations: 20.59 kB / 1.094 GB, free: 284 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.6369, allocations: 1.5 MB / 1.095 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.6371, allocations: 0.69 MB / 1.096 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.392e-05/0.6372, allocations: 6.5 kB / 1.096 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.977e-05/0.6372, allocations: 26.44 kB / 1.096 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of SimCode: time 3.6e-07/0.6372, allocations: 4.875 kB / 1.096 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5581/1.195, allocations: 2.249 MB / 1.098 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/14.25, allocations: 12.38 kB / 1.098 GB, free: 13.84 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches