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.005094/0.005094, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001493/0.001493, allocations: 194.2 kB / 16.68 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.786/2.786, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 64.14 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2741, allocations: 162.2 MB / 1.241 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002714/0.2768, allocations: 1.571 MB / 1.243 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000702/0.2775, allocations: 440.4 kB / 1.243 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.2776, allocations: 0 / 1.243 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.549e-05/0.2776, allocations: 3.938 kB / 1.243 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.6e-05/0.2777, allocations: 15.92 kB / 1.243 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.2779, allocations: 31.91 kB / 1.243 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.278, allocations: 71.83 kB / 1.244 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.998e-05/0.2781, allocations: 11.97 kB / 1.244 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.304e-05/0.2782, allocations: 35.92 kB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.385e-05/0.2783, allocations: 31.84 kB / 1.244 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.2783, allocations: 8 kB / 1.244 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.612e-05/0.2783, allocations: 8 kB / 1.244 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.732e-05/0.2784, allocations: 15.97 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.401e-05/0.2784, allocations: 31.86 kB / 1.244 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.2785, allocations: 67.92 kB / 1.244 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2786, allocations: 4 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2786, allocations: 0 / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.2786, allocations: 0 / 1.244 GB, free: 6.922 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.000588/0.2792, allocations: 379.2 kB / 1.244 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.2792, allocations: 12.03 kB / 1.244 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.173e-05/0.2793, allocations: 30.75 kB / 1.244 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.2793, allocations: 8.891 kB / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.2794, allocations: 176.3 kB / 1.244 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.2795, allocations: 8.375 kB / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.2795, allocations: 8.312 kB / 1.244 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.2797, allocations: 89.7 kB / 1.244 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2797, allocations: 3.984 kB / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.2797, allocations: 3.984 kB / 1.244 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2797, allocations: 4 kB / 1.244 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.2799, allocations: 39.97 kB / 1.244 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00056/0.2805, allocations: 316.7 kB / 1.245 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.2807, allocations: 98.55 kB / 1.245 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.969e-05/0.2808, allocations: 48.84 kB / 1.245 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.2809, allocations: 3.984 kB / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.2811, allocations: 115.4 kB / 1.245 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.2811, allocations: 0 / 1.245 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004126/0.2816, allocations: 177.6 kB / 1.245 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.2816, allocations: 59.39 kB / 1.245 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.957e-05/0.2817, allocations: 113.8 kB / 1.245 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.2817, allocations: 29.7 kB / 1.245 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.2818, allocations: 88.31 kB / 1.245 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.2818, allocations: 35.73 kB / 1.246 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.2819, allocations: 25.72 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.282, allocations: 318.8 kB / 1.246 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.2821, allocations: 35.98 kB / 1.246 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.368e-05/0.2822, allocations: 44.95 kB / 1.246 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.2824, allocations: 73.62 kB / 1.246 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2824, allocations: 4 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002291/0.2826, allocations: 109.6 kB / 1.246 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.2827, allocations: 4 kB / 1.246 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.2827, allocations: 8 kB / 1.246 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.2827, allocations: 3.938 kB / 1.246 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.656e-05/0.2828, allocations: 11.98 kB / 1.246 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2828, allocations: 4 kB / 1.246 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.089e-05/0.2829, allocations: 7.984 kB / 1.246 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2829, allocations: 4 kB / 1.246 GB, free: 4.227 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 0.0001052/0.283, allocations: 126.2 kB / 1.246 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.844e-05/0.283, allocations: 7.953 kB / 1.246 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.2831, allocations: 12.38 kB / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2831, allocations: 3.984 kB / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2831, allocations: 7.938 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2831, allocations: 0 / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.2833, allocations: 201.5 kB / 1.246 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2833, allocations: 0 / 1.246 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.947e-05/0.2834, allocations: 11.98 kB / 1.246 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2834, allocations: 0 / 1.246 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.2834, allocations: 4 kB / 1.246 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2834, allocations: 4 kB / 1.246 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2834, allocations: 4.312 kB / 1.246 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.2838, allocations: 220.8 kB / 1.247 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.2839, allocations: 85.09 kB / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.2839, allocations: 48 / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.284, allocations: 15.97 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.2841, allocations: 11.98 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.2841, allocations: 16.05 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.014e-05/0.2842, allocations: 83.27 kB / 1.247 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2842, allocations: 0 / 1.247 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002118/0.2844, allocations: 23.98 kB / 1.247 GB, free: 3.305 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.0007291/0.2851, allocations: 0.7614 MB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000241/0.2854, allocations: 91.89 kB / 1.248 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2854, allocations: 0 / 1.248 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.2855, allocations: 63.92 kB / 1.248 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.2857, allocations: 10.02 kB / 1.248 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.2874, allocations: 1.496 MB / 1.249 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.2877, allocations: 0.6924 MB / 1.25 GB, free: 52 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.721e-05/0.2878, allocations: 16.64 kB / 1.25 GB, free: 36 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.073e-05/0.2878, allocations: 19.44 kB / 1.25 GB, free: 16 kB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.2878, allocations: 0 / 1.25 GB, free: 16 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.3112, allocations: 2.27 MB / 1.252 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.663/7.974, allocations: 8.594 kB / 1.252 GB, free: 13.88 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 Error: Could not read variable soc.Q_flow in file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:time,soc.SOC