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.00161/0.001609, allocations: 105.8 kB / 16.37 MB, free: 6.477 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.001958/0.001958, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.18 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.206/2.206, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 61.78 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2766, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006997/0.2836, allocations: 5.119 MB / 0.9561 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.6726/0.9563, allocations: 150.8 MB / 1.103 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008963/0.9572, allocations: 24.03 kB / 1.103 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008644/0.9581, allocations: 342.7 kB / 1.104 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00182/0.9599, allocations: 0.5172 MB / 1.104 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001921/0.9619, allocations: 0.8609 MB / 1.105 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001811/0.9637, allocations: 1.482 MB / 1.107 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.9648, allocations: 0.8122 MB / 1.107 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007471/0.9655, allocations: 0.5236 MB / 1.108 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006273/0.9662, allocations: 0.5574 MB / 1.108 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.9664, allocations: 132.3 kB / 1.109 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009847/0.9674, allocations: 499 kB / 1.109 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003202/0.9677, allocations: 333.9 kB / 1.109 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0005888/0.9683, allocations: 0.6512 MB / 1.11 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.9706, allocations: 1.886 MB / 1.112 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.9706, allocations: 1.875 kB / 1.112 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9706, allocations: 0 / 1.112 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.921e-05/0.9706, allocations: 0 / 1.112 GB, free: 3.637 MB / 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.002789/0.9734, allocations: 1.668 MB / 1.113 GB, free: 18.75 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.9735, allocations: 10.17 kB / 1.113 GB, free: 18.75 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009421/0.9744, allocations: 217.8 kB / 1.114 GB, free: 18.68 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.9758, allocations: 0.9121 MB / 1.115 GB, free: 18.3 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.195e-05/0.9759, allocations: 76.62 kB / 1.115 GB, free: 18.29 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.976, allocations: 95.81 kB / 1.115 GB, free: 18.29 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.9778, allocations: 1.032 MB / 1.116 GB, free: 18.14 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.9778, allocations: 1 kB / 1.116 GB, free: 18.14 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.412e-05/0.9779, allocations: 41.38 kB / 1.116 GB, free: 18.14 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.978, allocations: 24.69 kB / 1.116 GB, free: 18.14 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.9799, allocations: 1.17 MB / 1.117 GB, free: 18.12 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004104/0.984, allocations: 2.794 MB / 1.12 GB, free: 17.27 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.9854, allocations: 0.792 MB / 1.12 GB, free: 17.22 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000487/0.9859, allocations: 299.5 kB / 1.121 GB, free: 17.21 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.174e-05/0.9859, allocations: 33.66 kB / 1.121 GB, free: 17.2 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007799/0.9867, allocations: 496.9 kB / 1.121 GB, free: 17.12 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=78): time 2.144e-06/0.9867, allocations: 8.906 kB / 1.121 GB, free: 17.12 MB / 0.8731 GB Notification: Performance of matching and sorting (n=78): time 0.002982/0.9897, allocations: 1.197 MB / 1.122 GB, free: 16.91 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.9899, allocations: 198.5 kB / 1.123 GB, free: 16.69 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.991, allocations: 0.7917 MB / 1.123 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.482e-05/0.9911, allocations: 41.55 kB / 1.123 GB, free: 16.51 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.9914, allocations: 0.5049 MB / 1.124 GB, free: 16.3 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.9915, allocations: 250.8 kB / 1.124 GB, free: 16.14 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.9918, allocations: 162.7 kB / 1.124 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.9919, allocations: 339.6 kB / 1.125 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004855/0.9924, allocations: 270.9 kB / 1.125 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000584/0.993, allocations: 359 kB / 1.125 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.994, allocations: 0.6107 MB / 1.126 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.994, allocations: 0 / 1.126 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001875/0.9959, allocations: 0.8644 MB / 1.127 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.9959, allocations: 4.844 kB / 1.127 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.9959, allocations: 1.375 kB / 1.127 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005851/0.9965, allocations: 82.2 kB / 1.127 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.9972, allocations: 155 kB / 1.127 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/0.9992, allocations: 1.656 MB / 1.129 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008011/1, allocations: 87.06 kB / 1.129 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.116e-05/1, allocations: 35 kB / 1.129 GB, free: 14.11 MB / 0.8731 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.0005011/1.001, allocations: 304 kB / 1.129 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/1.001, allocations: 102.8 kB / 1.129 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/1.003, allocations: 1.076 MB / 1.13 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/1.003, allocations: 8.188 kB / 1.13 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/1.003, allocations: 1.094 kB / 1.13 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/1.003, allocations: 8.953 kB / 1.13 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/1.004, allocations: 0.9992 MB / 1.131 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/1.004, allocations: 1.062 kB / 1.131 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/1.005, allocations: 147.2 kB / 1.131 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/1.005, allocations: 67.34 kB / 1.131 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.975e-05/1.005, allocations: 26.08 kB / 1.131 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/1.007, allocations: 1.663 MB / 1.133 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.007, allocations: 4 kB / 1.133 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/1.009, allocations: 0.9482 MB / 1.134 GB, free: 12 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004233/1.01, allocations: 292.1 kB / 1.134 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/1.01, allocations: 18.62 kB / 1.134 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005764/1.011, allocations: 61.98 kB / 1.134 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/1.011, allocations: 69.8 kB / 1.134 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.686e-05/1.011, allocations: 35.77 kB / 1.134 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0007968/1.012, allocations: 0.5601 MB / 1.135 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of sort global known variables: time 8.52e-07/1.012, allocations: 4 kB / 1.135 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001458/1.013, allocations: 338.6 kB / 1.135 GB, free: 11.65 MB / 0.8731 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.001453/1.014, allocations: 0.601 MB / 1.136 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001702/1.016, allocations: 0.83 MB / 1.137 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/1.016, allocations: 1.062 kB / 1.137 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008537/1.017, allocations: 0.5093 MB / 1.137 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/1.019, allocations: 459.9 kB / 1.138 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/1.024, allocations: 2.017 MB / 1.139 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009678/1.025, allocations: 1.1 MB / 1.141 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001121/1.026, allocations: 280.1 kB / 1.141 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/1.026, allocations: 113.6 kB / 1.141 GB, free: 9.516 MB / 0.8731 GB Notification: Performance of SimCode: time 4.3e-07/1.026, allocations: 0 / 1.141 GB, free: 9.516 MB / 0.8731 GB Notification: Performance of Templates: time 0.03059/1.057, allocations: 16.97 MB / 1.157 GB, free: 3.672 MB / 0.8731 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 -s gbode -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