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.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.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.001367/0.001367, allocations: 104.7 kB / 15.99 MB, free: 6.348 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.001529/0.001529, allocations: 199 kB / 16.91 MB, free: 6.188 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.363/1.363, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.384/2.384, allocations: 390.2 MB / 0.665 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 66.98 kB / 0.8127 GB, free: 33.24 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2925, allocations: 140.4 MB / 0.9498 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007604/0.3001, allocations: 5.117 MB / 0.9548 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.8213/1.121, allocations: 148.6 MB / 1.1 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/1.123, allocations: 23.88 kB / 1.1 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008216/1.124, allocations: 297.4 kB / 1.1 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001655/1.125, allocations: 472.8 kB / 1.101 GB, free: 4.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001935/1.127, allocations: 0.7554 MB / 1.101 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001924/1.129, allocations: 1.476 MB / 1.103 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/1.13, allocations: 0.8191 MB / 1.104 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009644/1.131, allocations: 0.5219 MB / 1.104 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007705/1.132, allocations: 0.558 MB / 1.105 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002411/1.132, allocations: 135.4 kB / 1.105 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/1.134, allocations: 477.6 kB / 1.105 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003747/1.134, allocations: 334.2 kB / 1.106 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007286/1.135, allocations: 0.6471 MB / 1.106 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002244/1.137, allocations: 1.418 MB / 1.108 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/1.137, allocations: 0.875 kB / 1.108 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.964e-06/1.137, allocations: 1.094 kB / 1.108 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.698e-05/1.137, allocations: 0 / 1.108 GB, free: 4.352 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.003389/1.14, allocations: 1.67 MB / 1.109 GB, free: 19.48 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/1.141, allocations: 13.44 kB / 1.109 GB, free: 19.47 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/1.142, allocations: 212.4 kB / 1.109 GB, free: 19.4 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/1.143, allocations: 0.8955 MB / 1.11 GB, free: 19.02 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.502e-05/1.143, allocations: 77.48 kB / 1.11 GB, free: 19.02 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/1.143, allocations: 98.92 kB / 1.11 GB, free: 19.01 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/1.145, allocations: 1.038 MB / 1.111 GB, free: 18.86 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/1.145, allocations: 0 / 1.111 GB, free: 18.86 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.182e-05/1.145, allocations: 41.34 kB / 1.112 GB, free: 18.86 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/1.145, allocations: 25.09 kB / 1.112 GB, free: 18.86 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002051/1.147, allocations: 1.171 MB / 1.113 GB, free: 18.84 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004678/1.152, allocations: 2.825 MB / 1.115 GB, free: 17.97 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/1.153, allocations: 0.8011 MB / 1.116 GB, free: 17.92 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006399/1.154, allocations: 301.8 kB / 1.117 GB, free: 17.9 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.423e-05/1.154, allocations: 36.48 kB / 1.117 GB, free: 17.89 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009796/1.155, allocations: 492.3 kB / 1.117 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=78): time 3.697e-06/1.155, allocations: 1.203 kB / 1.117 GB, free: 17.82 MB / 0.8731 GB Notification: Performance of matching and sorting (n=78): time 0.004242/1.159, allocations: 1.203 MB / 1.118 GB, free: 17.61 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/1.16, allocations: 189.8 kB / 1.118 GB, free: 17.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/1.161, allocations: 0.7939 MB / 1.119 GB, free: 17.24 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001107/1.161, allocations: 44.3 kB / 1.119 GB, free: 17.21 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005252/1.162, allocations: 0.5066 MB / 1.12 GB, free: 17 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/1.162, allocations: 255.3 kB / 1.12 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/1.163, allocations: 158.8 kB / 1.12 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001532/1.163, allocations: 341.5 kB / 1.12 GB, free: 16.51 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007844/1.163, allocations: 263.2 kB / 1.121 GB, free: 16.51 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008675/1.164, allocations: 364.1 kB / 1.121 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/1.166, allocations: 0.6039 MB / 1.122 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/1.166, allocations: 0 / 1.122 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002862/1.169, allocations: 0.8697 MB / 1.122 GB, free: 16.27 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/1.169, allocations: 5.75 kB / 1.122 GB, free: 16.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/1.169, allocations: 1.125 kB / 1.122 GB, free: 16.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000795/1.17, allocations: 82.92 kB / 1.123 GB, free: 16.26 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000915/1.171, allocations: 158.8 kB / 1.123 GB, free: 16.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/1.173, allocations: 1.641 MB / 1.124 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/1.175, allocations: 88.75 kB / 1.124 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/1.175, allocations: 36.55 kB / 1.124 GB, free: 14.82 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.000856/1.176, allocations: 306.5 kB / 1.125 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/1.176, allocations: 102.6 kB / 1.125 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/1.179, allocations: 1.075 MB / 1.126 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/1.179, allocations: 12.05 kB / 1.126 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.179, allocations: 0 / 1.126 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/1.179, allocations: 9.688 kB / 1.126 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/1.18, allocations: 1.001 MB / 1.127 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/1.18, allocations: 1.5 kB / 1.127 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005846/1.181, allocations: 139.8 kB / 1.127 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004544/1.181, allocations: 75.77 kB / 1.127 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.925e-05/1.181, allocations: 28.03 kB / 1.127 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001922/1.183, allocations: 1.67 MB / 1.129 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/1.183, allocations: 4.062 kB / 1.129 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/1.186, allocations: 0.9471 MB / 1.13 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006375/1.187, allocations: 290.1 kB / 1.13 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/1.187, allocations: 22.75 kB / 1.13 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009003/1.188, allocations: 60.22 kB / 1.13 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/1.188, allocations: 73.91 kB / 1.13 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/1.188, allocations: 35.09 kB / 1.13 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001091/1.189, allocations: 0.5575 MB / 1.131 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.4e-07/1.189, allocations: 0 / 1.131 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001449/1.191, allocations: 335.3 kB / 1.131 GB, free: 12.35 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.00192/1.192, allocations: 0.5998 MB / 1.132 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003463/1.196, allocations: 1.023 MB / 1.133 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.196, allocations: 5.531 kB / 1.133 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001301/1.197, allocations: 0.5133 MB / 1.133 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/1.2, allocations: 466.5 kB / 1.133 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006846/1.207, allocations: 2.574 MB / 1.136 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/1.208, allocations: 1.094 MB / 1.137 GB, free: 9.742 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007716/1.209, allocations: 125.1 kB / 1.137 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of SimCode: time 1.903e-06/1.209, allocations: 0 / 1.137 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of Templates: time 0.04158/1.251, allocations: 22.12 MB / 1.159 GB, free: 1.727 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 -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