Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.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.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weaSta.reaWeaTDryBul.y|weaSta.reaWeaTDewPoi.y|weaSta.reaWeaTBlaSky.y|weaSta.reaWeaHGloHor.y|weaSta.reaWeaHDifHor.y|weaSta.reaWeaHDirNor.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weaSta.reaWeaTDryBul.y|weaSta.reaWeaTDewPoi.y|weaSta.reaWeaTBlaSky.y|weaSta.reaWeaHGloHor.y|weaSta.reaWeaHDifHor.y|weaSta.reaWeaHDirNor.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 184.2 kB / 16.92 MB, free: 6.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.399/1.399, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.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.443/2.443, allocations: 390.9 MB / 0.667 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004126/0.0004125, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7168/0.7173, allocations: 142.4 MB / 0.9557 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005443/0.7227, allocations: 4.667 MB / 0.9603 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1936/0.9163, allocations: 146.9 MB / 1.104 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.9185, allocations: 23.81 kB / 1.104 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.9198, allocations: 286.2 kB / 1.104 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002933/0.9228, allocations: 447.7 kB / 1.104 GB, free: 6.492 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.9258, allocations: 0.7402 MB / 1.105 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003084/0.9289, allocations: 1.371 MB / 1.107 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.9308, allocations: 0.7857 MB / 1.107 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.9318, allocations: 374 kB / 1.108 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001034/0.9329, allocations: 429.3 kB / 1.108 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002974/0.9332, allocations: 28 kB / 1.108 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.9346, allocations: 371.6 kB / 1.108 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.9351, allocations: 206.9 kB / 1.109 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009002/0.936, allocations: 0.5334 MB / 1.109 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00203/0.938, allocations: 1.375 MB / 1.11 GB, free: 260 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.938, allocations: 4 kB / 1.111 GB, free: 256 kB / 0.8575 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9381, allocations: 0 / 1.111 GB, free: 256 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.601e-05/0.9381, allocations: 0 / 1.111 GB, free: 256 kB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.003117/0.9413, allocations: 1.398 MB / 1.112 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.9413, allocations: 12.03 kB / 1.112 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.9424, allocations: 227 kB / 1.112 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.9438, allocations: 0.8867 MB / 1.113 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.955e-05/0.9439, allocations: 74 kB / 1.113 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.9441, allocations: 99.98 kB / 1.113 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.9461, allocations: 1.028 MB / 1.114 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.9461, allocations: 0 / 1.114 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.9462, allocations: 47.98 kB / 1.114 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.9462, allocations: 24 kB / 1.114 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.9482, allocations: 1.179 MB / 1.115 GB, free: 11.15 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004919/0.9532, allocations: 2.868 MB / 1.118 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/0.9547, allocations: 0.8058 MB / 1.119 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.9553, allocations: 306.7 kB / 1.119 GB, free: 7.09 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-05/0.9554, allocations: 28.61 kB / 1.119 GB, free: 7.062 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009397/0.9563, allocations: 499 kB / 1.12 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=78): time 2.785e-06/0.9564, allocations: 4 kB / 1.12 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of matching and sorting (n=78): time 0.003199/0.9596, allocations: 1.221 MB / 1.121 GB, free: 5.305 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.9597, allocations: 196.5 kB / 1.121 GB, free: 5.07 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.9608, allocations: 0.7951 MB / 1.122 GB, free: 4.25 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.529e-05/0.9609, allocations: 41.7 kB / 1.122 GB, free: 4.203 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000448/0.9614, allocations: 0.5078 MB / 1.122 GB, free: 3.688 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.9616, allocations: 244.5 kB / 1.123 GB, free: 3.445 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.9617, allocations: 73.67 kB / 1.123 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.9619, allocations: 337.9 kB / 1.123 GB, free: 3.031 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000543/0.9624, allocations: 269.9 kB / 1.123 GB, free: 2.766 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006191/0.963, allocations: 367.1 kB / 1.124 GB, free: 2.395 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.9642, allocations: 0.6149 MB / 1.124 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.9642, allocations: 0 / 1.124 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00208/0.9663, allocations: 0.8719 MB / 1.125 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.9663, allocations: 4 kB / 1.125 GB, free: 0.8789 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.9663, allocations: 7.984 kB / 1.125 GB, free: 0.8711 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000616/0.9669, allocations: 88.8 kB / 1.125 GB, free: 0.7812 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006532/0.9676, allocations: 151.8 kB / 1.125 GB, free: 0.6328 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0022/0.9698, allocations: 1.541 MB / 1.127 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000829/0.9707, allocations: 107.3 kB / 1.127 GB, free: 14.85 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.939e-05/0.9707, allocations: 35.98 kB / 1.127 GB, free: 14.81 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006042/0.9714, allocations: 287.6 kB / 1.127 GB, free: 14.52 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.9715, allocations: 110.7 kB / 1.127 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002475/0.974, allocations: 1.09 MB / 1.128 GB, free: 13.31 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.974, allocations: 8 kB / 1.128 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.9741, allocations: 0 / 1.128 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.9741, allocations: 3.984 kB / 1.128 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.9754, allocations: 1.005 MB / 1.129 GB, free: 12.24 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.9754, allocations: 0 / 1.129 GB, free: 12.24 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005699/0.976, allocations: 143.8 kB / 1.13 GB, free: 12.1 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005524/0.9766, allocations: 80.78 kB / 1.13 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-05/0.9766, allocations: 27.97 kB / 1.13 GB, free: 11.99 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.9785, allocations: 1.563 MB / 1.131 GB, free: 10.29 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.9786, allocations: 3.938 kB / 1.131 GB, free: 10.29 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002042/0.9806, allocations: 0.9511 MB / 1.132 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/0.981, allocations: 299.4 kB / 1.132 GB, free: 9 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.9812, allocations: 31.92 kB / 1.132 GB, free: 8.969 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006606/0.9818, allocations: 77.81 kB / 1.133 GB, free: 8.895 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.982, allocations: 72.83 kB / 1.133 GB, free: 8.824 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-05/0.9821, allocations: 35.98 kB / 1.133 GB, free: 8.789 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007484/0.9828, allocations: 0.5503 MB / 1.133 GB, free: 8.227 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9828, allocations: 0 / 1.133 GB, free: 8.227 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009116/0.9838, allocations: 339 kB / 1.133 GB, free: 7.895 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001421/0.9852, allocations: 0.6012 MB / 1.134 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001706/0.9869, allocations: 0.8353 MB / 1.135 GB, free: 6.625 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.9869, allocations: 4 kB / 1.135 GB, free: 6.621 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009101/0.9878, allocations: 0.5119 MB / 1.135 GB, free: 6.102 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/0.9896, allocations: 415.8 kB / 1.136 GB, free: 5.703 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004667/0.9942, allocations: 2.636 MB / 1.138 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.9949, allocations: 1.106 MB / 1.139 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003577/0.9953, allocations: 123.4 kB / 1.14 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of SimCode: time 1.283e-06/0.9953, allocations: 0 / 1.14 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of Templates: time 0.02959/1.025, allocations: 21.93 MB / 1.161 GB, free: 11.87 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches