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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.003681/0.003681, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.001626/0.001626, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.499/2.499, allocations: 482.6 MB / 0.7551 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 73.72 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2549, allocations: 162.3 MB / 1.242 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002285/0.2573, allocations: 1.566 MB / 1.243 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006188/0.2579, allocations: 448.4 kB / 1.244 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.352e-05/0.2579, allocations: 0 / 1.244 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.858e-05/0.258, allocations: 3.938 kB / 1.244 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.05e-05/0.258, allocations: 7.922 kB / 1.244 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001672/0.2582, allocations: 35.89 kB / 1.244 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.241e-05/0.2583, allocations: 71.84 kB / 1.244 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.369e-05/0.2584, allocations: 15.92 kB / 1.244 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.341e-05/0.2585, allocations: 31.91 kB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.986e-05/0.2586, allocations: 43.77 kB / 1.244 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.2586, allocations: 4 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.2586, allocations: 8 kB / 1.244 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.452e-05/0.2586, allocations: 11.98 kB / 1.244 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.497e-05/0.2587, allocations: 23.88 kB / 1.244 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.2588, allocations: 71.98 kB / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2588, allocations: 0 / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2588, allocations: 0 / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.2588, allocations: 0 / 1.244 GB, free: 6.594 MB / 0.9669 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.0005115/0.2593, allocations: 379.2 kB / 1.244 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.2594, allocations: 8.031 kB / 1.245 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.2594, allocations: 38.73 kB / 1.245 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.2594, allocations: 8.891 kB / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.2596, allocations: 180.3 kB / 1.245 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.2596, allocations: 12.31 kB / 1.245 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.2596, allocations: 12.36 kB / 1.245 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.2598, allocations: 81.77 kB / 1.245 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.2598, allocations: 4 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.2598, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2598, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.26, allocations: 43.97 kB / 1.245 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.2604, allocations: 320.7 kB / 1.245 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.2607, allocations: 102.5 kB / 1.245 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.551e-05/0.2608, allocations: 44.78 kB / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.2608, allocations: 0 / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.261, allocations: 119.4 kB / 1.245 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.261, allocations: 0 / 1.245 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0003514/0.2614, allocations: 173.5 kB / 1.246 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.2614, allocations: 59.34 kB / 1.246 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.103e-05/0.2615, allocations: 105.8 kB / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.2615, allocations: 37.7 kB / 1.246 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.75e-05/0.2616, allocations: 88.33 kB / 1.246 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.765e-05/0.2616, allocations: 35.88 kB / 1.246 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.2617, allocations: 29.7 kB / 1.246 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2618, allocations: 326.7 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.367e-05/0.2619, allocations: 27.98 kB / 1.246 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.208e-05/0.262, allocations: 52.88 kB / 1.246 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.2621, allocations: 73.69 kB / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2621, allocations: 0 / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002045/0.2623, allocations: 117.5 kB / 1.247 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.2623, allocations: 4 kB / 1.247 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2624, allocations: 0 / 1.247 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2624, allocations: 4 kB / 1.247 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.487e-05/0.2624, allocations: 8 kB / 1.247 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2624, allocations: 0 / 1.247 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.038e-05/0.2625, allocations: 15.98 kB / 1.247 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.2625, allocations: 4 kB / 1.247 GB, free: 3.887 MB / 0.9669 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 8.296e-05/0.2626, allocations: 125.7 kB / 1.247 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.2626, allocations: 7.953 kB / 1.247 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.2627, allocations: 16.38 kB / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2627, allocations: 0 / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2627, allocations: 0 / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2627, allocations: 0 / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.2629, allocations: 201.5 kB / 1.247 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2629, allocations: 3.984 kB / 1.247 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.424e-05/0.2629, allocations: 8 kB / 1.247 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2629, allocations: 4 kB / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.263, allocations: 3.984 kB / 1.247 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.263, allocations: 0 / 1.247 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.263, allocations: 4 kB / 1.247 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.2633, allocations: 224.8 kB / 1.247 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.2634, allocations: 81.06 kB / 1.247 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.2634, allocations: 12.02 kB / 1.247 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.142e-05/0.2635, allocations: 4 kB / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.2635, allocations: 15.97 kB / 1.247 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.2635, allocations: 4 kB / 1.247 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.013e-05/0.2636, allocations: 91.27 kB / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2636, allocations: 0 / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001769/0.2638, allocations: 16 kB / 1.247 GB, free: 2.984 MB / 0.9669 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.0006187/0.2644, allocations: 0.758 MB / 1.248 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002016/0.2646, allocations: 95.94 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2646, allocations: 0 / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.2647, allocations: 72.03 kB / 1.248 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001663/0.2649, allocations: 11.94 kB / 1.248 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.2663, allocations: 1.497 MB / 1.25 GB, free: 448 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.2666, allocations: 0.6885 MB / 1.25 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.06e-05/0.2667, allocations: 8.672 kB / 1.25 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.2667, allocations: 23.42 kB / 1.25 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.2667, allocations: 4 kB / 1.25 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.896/2.163, allocations: 2.255 MB / 1.253 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/14.87, allocations: 10.95 kB / 1.253 GB, free: 13.56 MB / 0.9825 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=400 --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