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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_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.001095/0.001095, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001086/0.001086, allocations: 191.7 kB / 16.14 MB, free: 6.711 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.492/1.492, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.523/2.523, allocations: 461.9 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.09 kB / 0.8985 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2438, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002794/0.2466, allocations: 1.633 MB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006705/0.2473, allocations: 442.9 kB / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.2474, allocations: 7.938 kB / 1.054 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.495e-05/0.2474, allocations: 7.922 kB / 1.054 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.253e-05/0.2475, allocations: 11.92 kB / 1.054 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.2477, allocations: 19.98 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.834e-05/0.2478, allocations: 59.84 kB / 1.054 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.16e-05/0.2479, allocations: 15.98 kB / 1.054 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.404e-05/0.248, allocations: 31.91 kB / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.253e-05/0.2481, allocations: 35.84 kB / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.2481, allocations: 4 kB / 1.054 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.335e-05/0.2481, allocations: 4 kB / 1.054 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.2481, allocations: 15.97 kB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.287e-05/0.2482, allocations: 31.8 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.2484, allocations: 60 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.2484, allocations: 3.984 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.81e-07/0.2484, allocations: 7.938 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.2484, allocations: 0 / 1.055 GB, free: 5.832 MB / 0.8106 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.0005398/0.2489, allocations: 369 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.249, allocations: 11.97 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.494e-05/0.249, allocations: 42.73 kB / 1.055 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.2491, allocations: 8.844 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.857e-05/0.2492, allocations: 168.3 kB / 1.055 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.2492, allocations: 4.359 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-05/0.2493, allocations: 12.38 kB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.2494, allocations: 85.7 kB / 1.055 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.2495, allocations: 0 / 1.055 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2495, allocations: 4 kB / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2495, allocations: 0 / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.2496, allocations: 47.95 kB / 1.055 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005213/0.2501, allocations: 316.7 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.2504, allocations: 106.6 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.905e-05/0.2505, allocations: 44.84 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.2505, allocations: 4 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.2509, allocations: 111.2 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 3.237e-06/0.2509, allocations: 4 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003767/0.2512, allocations: 177.4 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.2513, allocations: 51.41 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.2514, allocations: 121.9 kB / 1.056 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.2514, allocations: 25.7 kB / 1.056 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.451e-05/0.2515, allocations: 92.36 kB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.2515, allocations: 19.72 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.2516, allocations: 29.7 kB / 1.056 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2517, allocations: 326.8 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.978e-05/0.2518, allocations: 27.98 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.387e-05/0.2519, allocations: 45.7 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.252, allocations: 65.64 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.252, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002401/0.2523, allocations: 113.5 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2523, allocations: 17.44 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.2523, allocations: 4 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.2523, allocations: 0 / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-05/0.2524, allocations: 11.98 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2524, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.074e-05/0.2525, allocations: 19.84 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.2525, allocations: 0 / 1.057 GB, free: 3.152 MB / 0.8106 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 9.39e-05/0.2526, allocations: 129.8 kB / 1.057 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.2526, allocations: 11.94 kB / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.2527, allocations: 8.375 kB / 1.057 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2527, allocations: 0 / 1.057 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2527, allocations: 4 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2527, allocations: 0 / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.2529, allocations: 209.4 kB / 1.057 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2529, allocations: 0 / 1.057 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.615e-05/0.253, allocations: 8 kB / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.253, allocations: 0 / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.253, allocations: 7.922 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2531, allocations: 8 kB / 1.057 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2531, allocations: 0 / 1.057 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003607/0.2534, allocations: 212.8 kB / 1.057 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.2535, allocations: 81.09 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.2535, allocations: 8.031 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.173e-05/0.2536, allocations: 7.984 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.2536, allocations: 16.05 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.2536, allocations: 7.984 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.558e-05/0.2537, allocations: 87.28 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2538, allocations: 3.938 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001978/0.254, allocations: 20 kB / 1.058 GB, free: 2.242 MB / 0.8106 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.0007081/0.2547, allocations: 0.776 MB / 1.058 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002061/0.2549, allocations: 83.91 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2549, allocations: 0 / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.255, allocations: 67.91 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001903/0.2552, allocations: 15.92 kB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.2567, allocations: 1.487 MB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.2571, allocations: 0.6964 MB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.412e-05/0.2571, allocations: 8.75 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.2572, allocations: 19.44 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2572, allocations: 4 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6833/0.9405, allocations: 1.992 MB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.9408, allocations: 223.2 kB / 1.063 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/3.076, allocations: 0 / 1.063 GB, free: 12.84 MB / 0.8262 GB (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 --timeout=50 --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) 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) Reference file matches