Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_latest_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.001168/0.001168, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001139/0.001139, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.194/1.194, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.216/2.216, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 64.44 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2445, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Comfort.Examples.Fanger): time 0.003119/0.2476, allocations: 2.318 MB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.5546/0.8022, allocations: 152 MB / 1.177 GB, free: 7.848 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.8024, allocations: 3.281 kB / 1.177 GB, free: 7.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.8026, allocations: 48.8 kB / 1.177 GB, free: 7.812 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000301/0.803, allocations: 105.2 kB / 1.178 GB, free: 7.738 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006185/0.8036, allocations: 300.2 kB / 1.178 GB, free: 7.59 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.804, allocations: 427.8 kB / 1.178 GB, free: 7.395 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.8042, allocations: 105.6 kB / 1.178 GB, free: 7.344 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.8053, allocations: 270.6 kB / 1.179 GB, free: 7.262 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.8055, allocations: 187.5 kB / 1.179 GB, free: 7.18 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/0.8056, allocations: 33.88 kB / 1.179 GB, free: 7.176 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004549/0.806, allocations: 283.3 kB / 1.179 GB, free: 7.051 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.107e-05/0.8061, allocations: 79.53 kB / 1.179 GB, free: 6.984 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.8063, allocations: 158.8 kB / 1.179 GB, free: 6.875 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005429/0.8068, allocations: 496.1 kB / 1.18 GB, free: 6.555 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.8068, allocations: 1.188 kB / 1.18 GB, free: 6.555 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8068, allocations: 3.938 kB / 1.18 GB, free: 6.551 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.8069, allocations: 0 / 1.18 GB, free: 6.551 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001324/0.8082, allocations: 0.7092 MB / 1.18 GB, free: 5.957 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.8082, allocations: 9.5 kB / 1.181 GB, free: 5.957 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002546/0.8108, allocations: 258.1 kB / 1.181 GB, free: 5.852 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.8112, allocations: 301.9 kB / 1.181 GB, free: 5.555 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.8112, allocations: 23.34 kB / 1.181 GB, free: 5.539 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.005e-05/0.8113, allocations: 29.78 kB / 1.181 GB, free: 5.527 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.8126, allocations: 434.9 kB / 1.182 GB, free: 5.262 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.8126, allocations: 0 / 1.182 GB, free: 5.262 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.8127, allocations: 10.34 kB / 1.182 GB, free: 5.254 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.8127, allocations: 10.25 kB / 1.182 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00209/0.8148, allocations: 0.5254 MB / 1.182 GB, free: 4.992 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002786/0.8176, allocations: 1.132 MB / 1.183 GB, free: 4.129 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.8196, allocations: 466.2 kB / 1.184 GB, free: 3.891 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009764/0.8206, allocations: 228.9 kB / 1.184 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.8207, allocations: 7.609 kB / 1.184 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.8207, allocations: 36.72 kB / 1.184 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=25): time 1.492e-06/0.8207, allocations: 4 kB / 1.184 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of matching and sorting (n=25): time 0.01436/0.8351, allocations: 1.725 MB / 1.186 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.8351, allocations: 53.81 kB / 1.186 GB, free: 2.73 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/0.8354, allocations: 309.8 kB / 1.186 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.8355, allocations: 30.89 kB / 1.186 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.8356, allocations: 169.8 kB / 1.186 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/0.8357, allocations: 91.44 kB / 1.186 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.8358, allocations: 78.69 kB / 1.186 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.8359, allocations: 341.8 kB / 1.187 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009133/0.8369, allocations: 201.4 kB / 1.187 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009548/0.8378, allocations: 260.6 kB / 1.187 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.8397, allocations: 441.1 kB / 1.187 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.8397, allocations: 1.344 kB / 1.187 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.006274/0.846, allocations: 0.8884 MB / 1.188 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.846, allocations: 5.5 kB / 1.188 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.846, allocations: 5.312 kB / 1.188 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.8478, allocations: 280.5 kB / 1.189 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004299/0.8482, allocations: 69.28 kB / 1.189 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.8611, allocations: 4.088 MB / 1.193 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000764/0.8618, allocations: 76.8 kB / 1.193 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.8619, allocations: 19.94 kB / 1.193 GB, free: 13.12 MB / 0.9044 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.0001798/0.8621, allocations: 142.4 kB / 1.193 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.864e-05/0.8622, allocations: 31.22 kB / 1.193 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006396/0.8686, allocations: 0.9502 MB / 1.194 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.8686, allocations: 5.406 kB / 1.194 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.8686, allocations: 0 / 1.194 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.8686, allocations: 2.844 kB / 1.194 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004491/0.8691, allocations: 426.4 kB / 1.194 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.8691, allocations: 3.938 kB / 1.194 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/0.8694, allocations: 55.55 kB / 1.194 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/0.871, allocations: 277.1 kB / 1.195 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.8711, allocations: 14.88 kB / 1.195 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/0.8837, allocations: 4.079 MB / 1.199 GB, free: 8.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8837, allocations: 0 / 1.199 GB, free: 8.32 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006211/0.8899, allocations: 0.9637 MB / 1.199 GB, free: 7.766 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.416e-05/0.89, allocations: 110.6 kB / 1.2 GB, free: 7.648 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.052e-05/0.8901, allocations: 11.91 kB / 1.2 GB, free: 7.637 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006571/0.8907, allocations: 41.27 kB / 1.2 GB, free: 7.621 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.8908, allocations: 21.72 kB / 1.2 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.8909, allocations: 21.19 kB / 1.2 GB, free: 7.594 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002014/0.8911, allocations: 228.1 kB / 1.2 GB, free: 7.449 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8911, allocations: 3.938 kB / 1.2 GB, free: 7.445 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005175/0.8916, allocations: 121.7 kB / 1.2 GB, free: 7.422 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 (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.0001788/0.8918, allocations: 112.3 kB / 1.2 GB, free: 7.328 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002344/0.8941, allocations: 0.715 MB / 1.201 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8942, allocations: 2.688 kB / 1.201 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.8955, allocations: 0.4966 MB / 1.201 GB, free: 6.488 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005608/0.8961, allocations: 115.3 kB / 1.201 GB, free: 6.422 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.8982, allocations: 0.6777 MB / 1.202 GB, free: 5.992 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.8985, allocations: 0.7767 MB / 1.203 GB, free: 5.246 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0002945/0.8988, allocations: 83.55 kB / 1.203 GB, free: 5.195 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.8989, allocations: 35.91 kB / 1.203 GB, free: 5.18 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8989, allocations: 0 / 1.203 GB, free: 5.18 MB / 0.9044 GB Notification: Performance of Templates: time 0.01625/0.9152, allocations: 13.56 MB / 1.216 GB, free: 10.5 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.makefile (rm -f Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe >> ../files/Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.sim & ./Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Comfort_Examples_Fanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Comfort.Examples.Fanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches