Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Utilities.Comfort.Examples.Fanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|theCom.M|theCom.TOpe|theCom.TAir|theCom.TRad|theCom.TClo|theCom.TSki|theCom.PMV|theCom.PPD|theCom.vAir",fileNamePrefix="Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger") translateModel(Buildings.Utilities.Comfort.Examples.Fanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|theCom.M|theCom.TOpe|theCom.TAir|theCom.TRad|theCom.TClo|theCom.TSki|theCom.PMV|theCom.PPD|theCom.vAir",fileNamePrefix="Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004656/0.004656, allocations: 102.6 kB / 15.73 MB, free: 6.02 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.0009994/0.0009994, allocations: 194.7 kB / 16.68 MB, free: 5.941 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.233/1.233, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.097/2.097, allocations: 390.2 MB / 0.6648 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 55.91 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9761/0.9774, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Comfort.Examples.Fanger): time 0.003169/0.9806, allocations: 2.317 MB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.199/1.18, allocations: 152 MB / 1.239 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/1.18, allocations: 3.281 kB / 1.239 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002235/1.18, allocations: 46.55 kB / 1.239 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004058/1.181, allocations: 107 kB / 1.239 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007628/1.181, allocations: 302 kB / 1.239 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004353/1.182, allocations: 433.1 kB / 1.239 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/1.182, allocations: 101 kB / 1.24 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001203/1.183, allocations: 287.7 kB / 1.24 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/1.184, allocations: 176.7 kB / 1.24 GB, free: 436 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.542e-05/1.184, allocations: 35.66 kB / 1.24 GB, free: 432 kB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005184/1.184, allocations: 281.6 kB / 1.24 GB, free: 296 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.04e-05/1.184, allocations: 80.09 kB / 1.24 GB, free: 228 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000153/1.184, allocations: 161.9 kB / 1.241 GB, free: 112 kB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006259/1.185, allocations: 0.4894 MB / 1.241 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/1.185, allocations: 1.375 kB / 1.241 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.503e-06/1.185, allocations: 0 / 1.241 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.544e-06/1.185, allocations: 0 / 1.241 GB, free: 15.79 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001424/1.187, allocations: 0.7073 MB / 1.242 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/1.187, allocations: 8.938 kB / 1.242 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00265/1.189, allocations: 262.7 kB / 1.242 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004119/1.19, allocations: 308.7 kB / 1.242 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/1.19, allocations: 19.31 kB / 1.242 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.844e-05/1.19, allocations: 26.47 kB / 1.242 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/1.191, allocations: 435.6 kB / 1.243 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/1.191, allocations: 3.984 kB / 1.243 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.589e-05/1.191, allocations: 10.84 kB / 1.243 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/1.191, allocations: 9.625 kB / 1.243 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00222/1.193, allocations: 0.5213 MB / 1.243 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/1.196, allocations: 1.119 MB / 1.244 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002154/1.199, allocations: 462.8 kB / 1.245 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009612/1.2, allocations: 228.7 kB / 1.245 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/1.2, allocations: 3.984 kB / 1.245 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/1.2, allocations: 34.56 kB / 1.245 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.532e-06/1.2, allocations: 4 kB / 1.245 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.01473/1.214, allocations: 1.727 MB / 1.247 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/1.214, allocations: 51.41 kB / 1.247 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/1.215, allocations: 316.4 kB / 1.247 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/1.215, allocations: 29.7 kB / 1.247 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/1.215, allocations: 172.2 kB / 1.247 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.304e-05/1.215, allocations: 86.75 kB / 1.247 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/1.215, allocations: 69.92 kB / 1.247 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.215, allocations: 346.7 kB / 1.248 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009732/1.216, allocations: 208.4 kB / 1.248 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/1.217, allocations: 255 kB / 1.248 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00196/1.219, allocations: 442.8 kB / 1.249 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.219, allocations: 0 / 1.249 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.006522/1.226, allocations: 0.8888 MB / 1.249 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/1.226, allocations: 4 kB / 1.249 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.226, allocations: 3.938 kB / 1.249 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/1.228, allocations: 281.4 kB / 1.25 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004746/1.228, allocations: 67.88 kB / 1.25 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/1.243, allocations: 4.082 MB / 1.254 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/1.244, allocations: 75.58 kB / 1.254 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/1.244, allocations: 23.97 kB / 1.254 GB, free: 3.191 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003682/1.244, allocations: 141.8 kB / 1.254 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/1.245, allocations: 27.62 kB / 1.254 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00691/1.251, allocations: 0.9495 MB / 1.255 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/1.252, allocations: 15.88 kB / 1.255 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/1.252, allocations: 0 / 1.255 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/1.252, allocations: 0 / 1.255 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006412/1.252, allocations: 436.6 kB / 1.255 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/1.252, allocations: 0 / 1.255 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/1.253, allocations: 55.89 kB / 1.255 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/1.254, allocations: 281.4 kB / 1.256 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.357e-05/1.255, allocations: 15.97 kB / 1.256 GB, free: 1.215 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/1.269, allocations: 4.072 MB / 1.26 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/1.269, allocations: 4.031 kB / 1.26 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006747/1.276, allocations: 0.9608 MB / 1.261 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/1.276, allocations: 112.7 kB / 1.261 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.631e-05/1.277, allocations: 8 kB / 1.261 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007549/1.277, allocations: 39.95 kB / 1.261 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/1.277, allocations: 19.97 kB / 1.261 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.386e-05/1.277, allocations: 23.91 kB / 1.261 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002738/1.278, allocations: 223.1 kB / 1.261 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.11e-07/1.278, allocations: 0 / 1.261 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006952/1.278, allocations: 115.9 kB / 1.261 GB, free: 11.32 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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002627/1.279, allocations: 123.2 kB / 1.261 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002771/1.282, allocations: 0.7237 MB / 1.262 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.282, allocations: 0 / 1.262 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/1.283, allocations: 0.5049 MB / 1.262 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006823/1.284, allocations: 114.9 kB / 1.263 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/1.286, allocations: 0.676 MB / 1.263 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/1.287, allocations: 0.7723 MB / 1.264 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003937/1.287, allocations: 78.88 kB / 1.264 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/1.287, allocations: 35.41 kB / 1.264 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/1.287, allocations: 0 / 1.264 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of Templates: time 0.0211/1.308, allocations: 13.62 MB / 1.277 GB, free: 10.64 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.makefile (rm -f Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.pipe ; mkfifo Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.pipe >> ../files/Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.sim & ./Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Comfort_Examples_Fanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Comfort.Examples.Fanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches