Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",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.003993/0.003993, allocations: 102 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.001363/0.001363, allocations: 192 kB / 16.67 MB, free: 5.973 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.238/1.238, 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 12.0.0-master/package.mo): time 2.347/2.347, allocations: 482.6 MB / 0.7551 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 65.88 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2564, allocations: 162.3 MB / 1.242 GB, free: 8.891 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.002738/0.2592, allocations: 1.974 MB / 1.244 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.2602, allocations: 0.6896 MB / 1.244 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.907e-05/0.2603, allocations: 8 kB / 1.244 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.2604, allocations: 19.73 kB / 1.244 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.642e-05/0.2605, allocations: 19.8 kB / 1.245 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.2608, allocations: 83.78 kB / 1.245 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.261, allocations: 147.6 kB / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.2611, allocations: 84.59 kB / 1.245 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.865e-05/0.2612, allocations: 63.72 kB / 1.245 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.2613, allocations: 67.69 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.2614, allocations: 23.94 kB / 1.245 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.2615, allocations: 67.88 kB / 1.245 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.651e-05/0.2616, allocations: 67.75 kB / 1.245 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.011e-05/0.2617, allocations: 91.41 kB / 1.245 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.262, allocations: 271 kB / 1.245 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.262, allocations: 0 / 1.245 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.393e-06/0.262, allocations: 0 / 1.245 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.262, allocations: 0 / 1.245 GB, free: 5.211 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007085/0.2627, allocations: 0.545 MB / 1.246 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.2628, allocations: 8.031 kB / 1.246 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.233e-05/0.2628, allocations: 46.73 kB / 1.246 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001467/0.2643, allocations: 428 kB / 1.246 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.2646, allocations: 315.9 kB / 1.247 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.179e-05/0.2647, allocations: 72.19 kB / 1.247 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.2648, allocations: 12.38 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007407/0.2655, allocations: 388.2 kB / 1.247 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2655, allocations: 4 kB / 1.247 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.2656, allocations: 4 kB / 1.247 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.2656, allocations: 4 kB / 1.247 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.2667, allocations: 0.5389 MB / 1.248 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.2682, allocations: 0.994 MB / 1.249 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006226/0.2688, allocations: 298.2 kB / 1.249 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005604/0.2694, allocations: 272.6 kB / 1.249 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.2694, allocations: 0 / 1.249 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.2694, allocations: 34.56 kB / 1.249 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.2694, allocations: 4 kB / 1.249 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.001728/0.2712, allocations: 0.782 MB / 1.25 GB, free: 316 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.2712, allocations: 51.41 kB / 1.25 GB, free: 252 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.2715, allocations: 302.6 kB / 1.25 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.2715, allocations: 33.64 kB / 1.25 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2716, allocations: 156.4 kB / 1.251 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.2717, allocations: 19.86 kB / 1.251 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.847e-05/0.2718, allocations: 37.67 kB / 1.251 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.2719, allocations: 338.8 kB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005532/0.2725, allocations: 255.8 kB / 1.251 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/0.273, allocations: 259.8 kB / 1.251 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009749/0.274, allocations: 440.4 kB / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.274, allocations: 0 / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001134/0.2751, allocations: 0.5323 MB / 1.252 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.2752, allocations: 6.031 kB / 1.252 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.2752, allocations: 4 kB / 1.252 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.2752, allocations: 0 / 1.252 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.2755, allocations: 99.7 kB / 1.252 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.2756, allocations: 0 / 1.252 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.2758, allocations: 79.77 kB / 1.253 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.2759, allocations: 11.97 kB / 1.253 GB, free: 13.67 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001291/0.276, allocations: 142.3 kB / 1.253 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.778e-05/0.2761, allocations: 19.84 kB / 1.253 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.017e-05/0.2761, allocations: 25.7 kB / 1.253 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2761, allocations: 0 / 1.253 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2761, allocations: 0 / 1.253 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.2761, allocations: 4 kB / 1.253 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004297/0.2766, allocations: 444.4 kB / 1.253 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2766, allocations: 0 / 1.253 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.2769, allocations: 91.83 kB / 1.253 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2769, allocations: 0 / 1.253 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.2769, allocations: 11.97 kB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2769, allocations: 4 kB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.902e-06/0.277, allocations: 3.938 kB / 1.253 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.2782, allocations: 0.6322 MB / 1.254 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.796e-05/0.2782, allocations: 101 kB / 1.254 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.048e-05/0.2783, allocations: 0 / 1.254 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002995/0.2786, allocations: 75.88 kB / 1.254 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.2786, allocations: 11.98 kB / 1.254 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.2786, allocations: 7.984 kB / 1.254 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001969/0.2788, allocations: 217.9 kB / 1.254 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2789, allocations: 0 / 1.254 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002527/0.2791, allocations: 39.94 kB / 1.254 GB, free: 11.77 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.001478/0.2806, allocations: 1.177 MB / 1.255 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001149/0.2818, allocations: 0.5268 MB / 1.256 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2818, allocations: 0 / 1.256 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005719/0.2823, allocations: 275.7 kB / 1.256 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.2826, allocations: 14.44 kB / 1.256 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005495/0.2881, allocations: 3.908 MB / 1.26 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.2884, allocations: 0.7435 MB / 1.261 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001718/0.2886, allocations: 57.42 kB / 1.261 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.2888, allocations: 83.38 kB / 1.261 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.2888, allocations: 0 / 1.261 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3042/0.5929, allocations: 5.082 MB / 1.266 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.669/9.262, allocations: 11.06 kB / 1.266 GB, free: 15.93 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate_fmu --startTime=0 --stopTime=7200 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches