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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00247/0.00247, allocations: 195 kB / 16.25 MB, free: 6.625 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.46/1.46, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.977/2.977, allocations: 472.6 MB / 0.7448 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 64.36 kB / 0.9116 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3325, allocations: 159.9 MB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003399/0.336, allocations: 2.037 MB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3371, allocations: 0.678 MB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.755e-05/0.3372, allocations: 7.938 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.3373, allocations: 15.84 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.35e-05/0.3374, allocations: 15.88 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.3378, allocations: 71.94 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000186/0.338, allocations: 155.5 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.3382, allocations: 84.59 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.3383, allocations: 55.78 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.3385, allocations: 79.55 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.3385, allocations: 16 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.3387, allocations: 59.95 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.742e-05/0.3388, allocations: 63.83 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.636e-05/0.3388, allocations: 99.34 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.3392, allocations: 259.4 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3392, allocations: 0 / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3392, allocations: 0 / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3392, allocations: 0 / 1.071 GB, free: 7.031 MB / 0.8262 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.0008269/0.3401, allocations: 0.5336 MB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3401, allocations: 8.031 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.342, allocations: 427.8 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004783/0.3424, allocations: 311.8 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.274e-05/0.3426, allocations: 68.19 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.3426, allocations: 12.38 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000923/0.3435, allocations: 391.2 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3435, allocations: 0 / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3436, allocations: 4 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.3436, allocations: 8 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.345, allocations: 0.5353 MB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.3467, allocations: 1.005 MB / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007811/0.3475, allocations: 290.3 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006244/0.3482, allocations: 276.6 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3482, allocations: 4 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.3482, allocations: 30.56 kB / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.156e-06/0.3482, allocations: 0 / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.002049/0.3503, allocations: 0.8014 MB / 1.076 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.3503, allocations: 55.41 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.3507, allocations: 298.6 kB / 1.076 GB, free: 1.812 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3508, allocations: 25.7 kB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3509, allocations: 160.1 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.3509, allocations: 15.75 kB / 1.076 GB, free: 1.605 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.036e-05/0.351, allocations: 41.67 kB / 1.076 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3511, allocations: 338.8 kB / 1.077 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007194/0.3519, allocations: 255.8 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.3525, allocations: 255.8 kB / 1.077 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.3535, allocations: 436.4 kB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3536, allocations: 3.984 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001275/0.3548, allocations: 0.5438 MB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3549, allocations: 5.719 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.3549, allocations: 0 / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.3549, allocations: 0 / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.3553, allocations: 95.83 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3553, allocations: 0 / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003282/0.3557, allocations: 71.88 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.3557, allocations: 11.97 kB / 1.078 GB, free: 15.55 MB / 0.8419 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.0001514/0.3558, allocations: 141.8 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.714e-05/0.3559, allocations: 23.72 kB / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.349e-05/0.356, allocations: 25.7 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.356, allocations: 0 / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.356, allocations: 0 / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.356, allocations: 4 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004847/0.3565, allocations: 432.4 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3565, allocations: 0 / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/0.3569, allocations: 99.77 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3569, allocations: 4 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3569, allocations: 7.969 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3569, allocations: 4 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3569, allocations: 0 / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.3582, allocations: 0.6315 MB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.3584, allocations: 104.8 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.3584, allocations: 0 / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.3588, allocations: 75.88 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.3588, allocations: 3.984 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.3589, allocations: 7.984 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002444/0.3591, allocations: 217.9 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.953e-06/0.3591, allocations: 4 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003069/0.3594, allocations: 47.78 kB / 1.08 GB, free: 13.65 MB / 0.8419 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.0002219/0.3597, allocations: 103.2 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001303/0.361, allocations: 0.5235 MB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.361, allocations: 3.938 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006282/0.3616, allocations: 279.7 kB / 1.081 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.3619, allocations: 20.5 kB / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.3634, allocations: 0.654 MB / 1.082 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.3637, allocations: 0.7435 MB / 1.082 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002235/0.364, allocations: 57.42 kB / 1.082 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.3641, allocations: 31.39 kB / 1.083 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3641, allocations: 0 / 1.083 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.006472/0.3705, allocations: 2.764 MB / 1.085 GB, free: 8.418 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (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 & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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