Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 107 kB / 16.36 MB, free: 6.285 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.001266/0.001266, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.175/2.175, allocations: 390.3 MB / 0.6655 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 63.09 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3021, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002746/0.3049, allocations: 1.566 MB / 0.9527 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009811/0.3059, allocations: 0.593 MB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.3059, allocations: 0 / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.178e-05/0.306, allocations: 3.938 kB / 0.9532 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.381e-05/0.3061, allocations: 19.86 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.3064, allocations: 51.88 kB / 0.9533 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.3065, allocations: 51.78 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.3066, allocations: 19.91 kB / 0.9534 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.145e-05/0.3067, allocations: 23.91 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.686e-05/0.3068, allocations: 19.92 kB / 0.9534 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.3069, allocations: 7.875 kB / 0.9534 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.307, allocations: 51.95 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.504e-05/0.3071, allocations: 23.97 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.313e-05/0.3071, allocations: 23.81 kB / 0.9535 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.3073, allocations: 99.67 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3073, allocations: 4 kB / 0.9536 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3073, allocations: 0 / 0.9536 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.629e-06/0.3074, allocations: 0 / 0.9536 GB, free: 5.457 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005881/0.3079, allocations: 395.1 kB / 0.954 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.308, allocations: 8.031 kB / 0.954 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008923/0.3089, allocations: 212.5 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.3091, allocations: 194.1 kB / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.323e-05/0.3092, allocations: 34.27 kB / 0.9544 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.3092, allocations: 3.938 kB / 0.9544 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/0.3097, allocations: 169.5 kB / 0.9546 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3097, allocations: 11.91 kB / 0.9546 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.3097, allocations: 4 kB / 0.9546 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3098, allocations: 0 / 0.9546 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000573/0.3103, allocations: 235.8 kB / 0.9548 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008863/0.3112, allocations: 0.5116 MB / 0.9553 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005574/0.3118, allocations: 242.3 kB / 0.9556 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.3121, allocations: 116.8 kB / 0.9557 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.3121, allocations: 4 kB / 0.9557 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.3122, allocations: 30.56 kB / 0.9557 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.3122, allocations: 0 / 0.9557 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0009563/0.3131, allocations: 373.2 kB / 0.9561 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.3132, allocations: 51.41 kB / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.3134, allocations: 179.3 kB / 0.9563 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.3134, allocations: 25.7 kB / 0.9563 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.3135, allocations: 104.1 kB / 0.9564 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.3135, allocations: 11.84 kB / 0.9564 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.3135, allocations: 17.7 kB / 0.9564 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.3137, allocations: 322.8 kB / 0.9567 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.3139, allocations: 115.9 kB / 0.9569 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.3142, allocations: 111.9 kB / 0.957 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.3147, allocations: 204.6 kB / 0.9572 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3147, allocations: 0 / 0.9572 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006552/0.3154, allocations: 257.3 kB / 0.9574 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3154, allocations: 4 kB / 0.9574 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3154, allocations: 4.031 kB / 0.9574 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.3155, allocations: 0 / 0.9574 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.3157, allocations: 43.92 kB / 0.9574 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3157, allocations: 3.938 kB / 0.9575 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.3159, allocations: 39.92 kB / 0.9575 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.3159, allocations: 4 kB / 0.9575 GB, free: 1.258 MB / 0.7325 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 (2): * Single equations (assignments): 2 * 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.0001537/0.3161, allocations: 117.8 kB / 0.9576 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.3161, allocations: 11.81 kB / 0.9576 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.3161, allocations: 11.88 kB / 0.9576 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3161, allocations: 0 / 0.9576 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3162, allocations: 7.875 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3162, allocations: 3.984 kB / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.3164, allocations: 237.6 kB / 0.9579 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3164, allocations: 8 kB / 0.9579 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.3166, allocations: 47.84 kB / 0.9579 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3166, allocations: 0 / 0.9579 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.3167, allocations: 3.984 kB / 0.9579 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3167, allocations: 4 kB / 0.9579 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3167, allocations: 3.938 kB / 0.9579 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000643/0.3173, allocations: 351.2 kB / 0.9583 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.3174, allocations: 88.94 kB / 0.9584 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.3174, allocations: 4 kB / 0.9584 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.3176, allocations: 31.94 kB / 0.9584 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.3176, allocations: 3.938 kB / 0.9584 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.3177, allocations: 7.984 kB / 0.9584 GB, free: 248 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.706e-05/0.3178, allocations: 131.2 kB / 0.9585 GB, free: 116 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3178, allocations: 4.031 kB / 0.9585 GB, free: 112 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002576/0.318, allocations: 12 kB / 0.9585 GB, free: 100 kB / 0.7325 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 (2): * Single equations (assignments): 2 * 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.0002469/0.3183, allocations: 99.25 kB / 0.9586 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006153/0.3189, allocations: 239.7 kB / 0.9589 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3189, allocations: 0 / 0.9589 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.3192, allocations: 119.9 kB / 0.959 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002448/0.3195, allocations: 11.94 kB / 0.959 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.3201, allocations: 279 kB / 0.9593 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.3204, allocations: 0.7002 MB / 0.9599 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.206e-05/0.3205, allocations: 20 kB / 0.96 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.81e-05/0.3206, allocations: 35.34 kB / 0.96 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.3206, allocations: 0 / 0.96 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of Templates: time 0.003771/0.3244, allocations: 1.286 MB / 0.9612 GB, free: 13.26 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches