Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",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.008236/0.008236, allocations: 100.4 kB / 15.73 MB, free: 6.008 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.001705/0.001705, allocations: 198.8 kB / 16.68 MB, free: 5.926 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.91 kB / 1.018 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8115/0.8128, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002987/0.8159, allocations: 1.585 MB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.817, allocations: 0.5892 MB / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.631e-05/0.8171, allocations: 0 / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.789e-05/0.8172, allocations: 7.938 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.8173, allocations: 11.88 kB / 1.168 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.8176, allocations: 59.81 kB / 1.168 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.8178, allocations: 51.78 kB / 1.168 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.8179, allocations: 8 kB / 1.168 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.818, allocations: 23.92 kB / 1.168 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.769e-05/0.8181, allocations: 31.83 kB / 1.168 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/0.8181, allocations: 7.938 kB / 1.168 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.8182, allocations: 51.95 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.892e-05/0.8183, allocations: 15.98 kB / 1.169 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.091e-05/0.8184, allocations: 31.73 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.8186, allocations: 94.02 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.8186, allocations: 3.984 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8186, allocations: 0 / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.8186, allocations: 0 / 1.169 GB, free: 1.223 MB / 0.8887 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.0006241/0.8192, allocations: 399 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.8193, allocations: 8.922 kB / 1.169 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.073e-05/0.8193, allocations: 34.75 kB / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008624/0.8202, allocations: 204.5 kB / 1.169 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.8204, allocations: 198.8 kB / 1.169 GB, free: 312 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.446e-05/0.8205, allocations: 38 kB / 1.17 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.8205, allocations: 3.938 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004048/0.8209, allocations: 169.5 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.8209, allocations: 4 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.8209, allocations: 0 / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.8209, allocations: 4 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005806/0.8215, allocations: 231.8 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008733/0.8224, allocations: 0.5077 MB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.823, allocations: 238.3 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.8233, allocations: 116.8 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.8233, allocations: 4.062 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.8234, allocations: 38.56 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 3.076e-06/0.8234, allocations: 4 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.0009553/0.8243, allocations: 369.2 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.8244, allocations: 55.34 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.8245, allocations: 168.4 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.8246, allocations: 25.7 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.596e-05/0.8246, allocations: 104.1 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.8247, allocations: 8.031 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.8247, allocations: 25.69 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.8248, allocations: 322.8 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.8251, allocations: 107.9 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.8254, allocations: 111.9 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004954/0.8259, allocations: 204.6 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.8259, allocations: 3.938 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005923/0.8265, allocations: 253.4 kB / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.8266, allocations: 4 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.8266, allocations: 0 / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.8266, allocations: 3.984 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.8268, allocations: 55.95 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.8268, allocations: 3.938 kB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.827, allocations: 31.94 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.827, allocations: 7.984 kB / 1.173 GB, free: 12.99 MB / 0.9044 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.0001065/0.8271, allocations: 117.8 kB / 1.173 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.967e-05/0.8272, allocations: 11.89 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.845e-05/0.8272, allocations: 15.81 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.8272, allocations: 0 / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.8272, allocations: 3.938 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.8272, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.8275, allocations: 249.4 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.8275, allocations: 3.938 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.8277, allocations: 51.91 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.8277, allocations: 0 / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.8277, allocations: 4 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.8277, allocations: 0 / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.8277, allocations: 3.938 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006475/0.8284, allocations: 347.2 kB / 1.173 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.8285, allocations: 85.02 kB / 1.173 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.8285, allocations: 3.984 kB / 1.173 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.8287, allocations: 35.97 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.8287, allocations: 7.938 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.8287, allocations: 7.984 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001014/0.8288, allocations: 126.1 kB / 1.174 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.21e-07/0.8289, allocations: 0 / 1.174 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002586/0.8291, allocations: 16 kB / 1.174 GB, free: 11.83 MB / 0.9044 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.0009968/0.8301, allocations: 0.8909 MB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006295/0.8308, allocations: 231.8 kB / 1.175 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8308, allocations: 0 / 1.175 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003179/0.8311, allocations: 123.9 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.8314, allocations: 12 kB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/0.8347, allocations: 2.347 MB / 1.177 GB, free: 8.129 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.835, allocations: 0.6962 MB / 1.178 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 9.492e-05/0.8351, allocations: 27.98 kB / 1.178 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.067e-05/0.8352, allocations: 31.41 kB / 1.178 GB, free: 7.348 MB / 0.9044 GB Notification: Performance of SimCode: time 3.3e-07/0.8352, allocations: 4 kB / 1.178 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/0.8565, allocations: 2.633 MB / 1.18 GB, free: 4.797 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.96/8.816, allocations: 27.53 kB / 1.18 GB, free: 4.777 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches