Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",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.004494/0.004494, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.001344/0.001344, allocations: 191.6 kB / 16.67 MB, free: 6.348 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.546/2.546, allocations: 482.6 MB / 0.755 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 79.81 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2553, allocations: 162.3 MB / 1.242 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002201/0.2576, allocations: 1.533 MB / 1.243 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000987/0.2586, allocations: 0.7635 MB / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.2586, allocations: 0 / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.261e-05/0.2586, allocations: 3.938 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.521e-05/0.2587, allocations: 19.86 kB / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.259, allocations: 91.59 kB / 1.244 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.706e-05/0.2591, allocations: 51.78 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.524e-05/0.2592, allocations: 11.98 kB / 1.244 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.815e-05/0.2592, allocations: 27.92 kB / 1.244 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.607e-05/0.2593, allocations: 23.92 kB / 1.244 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.2593, allocations: 4 kB / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.2595, allocations: 71.86 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.281e-05/0.2595, allocations: 4 kB / 1.244 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.2595, allocations: 27.86 kB / 1.244 GB, free: 7.168 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.2597, allocations: 99.62 kB / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2597, allocations: 0 / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2597, allocations: 0 / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.366e-06/0.2597, allocations: 0 / 1.245 GB, free: 7.07 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004134/0.2601, allocations: 379 kB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2602, allocations: 12.03 kB / 1.245 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.327e-05/0.2602, allocations: 38.69 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.2605, allocations: 24.89 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.2606, allocations: 172.3 kB / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.851e-06/0.2606, allocations: 384 / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.2606, allocations: 4.375 kB / 1.245 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.2608, allocations: 89.69 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.2608, allocations: 0 / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-06/0.2609, allocations: 4 kB / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-06/0.2609, allocations: 0 / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.2611, allocations: 59.95 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004249/0.2615, allocations: 332.7 kB / 1.246 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.2618, allocations: 70.53 kB / 1.246 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.2619, allocations: 36.94 kB / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.2619, allocations: 7.984 kB / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.262, allocations: 34.55 kB / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.262, allocations: 0 / 1.246 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0004607/0.2624, allocations: 133.5 kB / 1.246 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.2625, allocations: 63.34 kB / 1.246 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.112e-05/0.2626, allocations: 113.8 kB / 1.246 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.2626, allocations: 25.7 kB / 1.246 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/0.2626, allocations: 96.08 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.2627, allocations: 7.891 kB / 1.246 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.2627, allocations: 25.7 kB / 1.246 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2628, allocations: 318.8 kB / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.2629, allocations: 31.98 kB / 1.247 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.2631, allocations: 35.97 kB / 1.247 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.2633, allocations: 68.75 kB / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2633, allocations: 0 / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000287/0.2636, allocations: 109.6 kB / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.2636, allocations: 4 kB / 1.247 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/0.2636, allocations: 0 / 1.247 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2636, allocations: 4 kB / 1.247 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.2638, allocations: 19.97 kB / 1.247 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.2638, allocations: 3.984 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.272e-05/0.2639, allocations: 8 kB / 1.247 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.2639, allocations: 7.984 kB / 1.247 GB, free: 4.543 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.875e-05/0.264, allocations: 109.8 kB / 1.247 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.264, allocations: 7.953 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.749e-05/0.2641, allocations: 11.91 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2641, allocations: 0 / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2641, allocations: 0 / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.2641, allocations: 4 kB / 1.247 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.2643, allocations: 189.5 kB / 1.247 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2643, allocations: 4 kB / 1.247 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.2644, allocations: 19.91 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.2644, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.2644, allocations: 7.984 kB / 1.247 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2644, allocations: 3.938 kB / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2644, allocations: 0 / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.2648, allocations: 203.4 kB / 1.247 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-05/0.2648, allocations: 89.05 kB / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.2648, allocations: 0 / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.2649, allocations: 4 kB / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.265, allocations: 3.984 kB / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.265, allocations: 4 kB / 1.247 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.853e-05/0.265, allocations: 95.27 kB / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.265, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002272/0.2653, allocations: 31.94 kB / 1.248 GB, free: 3.672 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006527/0.2659, allocations: 0.7663 MB / 1.248 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002928/0.2662, allocations: 75.91 kB / 1.248 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.2662, allocations: 0 / 1.248 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.2664, allocations: 43.91 kB / 1.248 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.2666, allocations: 4 kB / 1.248 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004657/0.2671, allocations: 212.5 kB / 1.249 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.2673, allocations: 0.6846 MB / 1.249 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.75e-05/0.2674, allocations: 15.98 kB / 1.249 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.833e-05/0.2675, allocations: 23.42 kB / 1.249 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.2675, allocations: 0 / 1.249 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.19/2.457, allocations: 2.142 MB / 1.251 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.212/11.67, allocations: 4.547 kB / 1.251 GB, free: 14.84 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches