Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.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.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001348/0.001348, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.605/1.605, allocations: 223.3 MB / 240 MB, free: 5.305 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.71/2.71, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003802, allocations: 12 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8912/0.8916, allocations: 142.4 MB / 0.9544 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.007098/0.8987, allocations: 6.451 MB / 0.9607 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1959/1.095, allocations: 138.4 MB / 1.096 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/1.096, allocations: 23.88 kB / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001046/1.097, allocations: 254.3 kB / 1.096 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00293/1.1, allocations: 0.6841 MB / 1.097 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002734/1.103, allocations: 0.825 MB / 1.098 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002584/1.106, allocations: 1.709 MB / 1.099 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00232/1.108, allocations: 1.283 MB / 1.101 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008365/1.109, allocations: 497.8 kB / 1.101 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008671/1.11, allocations: 0.6105 MB / 1.102 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001217/1.11, allocations: 44 kB / 1.102 GB, free: 8.352 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001214/1.111, allocations: 475.5 kB / 1.102 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003496/1.111, allocations: 326.8 kB / 1.102 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000345/1.112, allocations: 268.9 kB / 1.103 GB, free: 7.297 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001853/1.114, allocations: 1.691 MB / 1.104 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/1.114, allocations: 0 / 1.104 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.182e-06/1.114, allocations: 0 / 1.104 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.256e-05/1.114, allocations: 0 / 1.104 GB, free: 5.602 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003074/1.117, allocations: 1.585 MB / 1.106 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/1.117, allocations: 8.031 kB / 1.106 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/1.118, allocations: 297.8 kB / 1.106 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/1.12, allocations: 0.9492 MB / 1.107 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.77e-05/1.12, allocations: 90.22 kB / 1.107 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/1.12, allocations: 112 kB / 1.107 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002655/1.123, allocations: 1.382 MB / 1.109 GB, free: 1 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/1.123, allocations: 3.938 kB / 1.109 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/1.123, allocations: 51.98 kB / 1.109 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.948e-05/1.123, allocations: 66.06 kB / 1.109 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002385/1.125, allocations: 1.514 MB / 1.11 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007853/1.133, allocations: 4.882 MB / 1.115 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/1.135, allocations: 1.088 MB / 1.116 GB, free: 9.113 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007891/1.136, allocations: 464.6 kB / 1.116 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002678/1.137, allocations: 129.9 kB / 1.117 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001566/1.138, allocations: 0.6546 MB / 1.117 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=103): time 2.996e-06/1.138, allocations: 0 / 1.117 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of matching and sorting (n=104): time 0.005777/1.144, allocations: 2.259 MB / 1.119 GB, free: 5.539 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002531/1.144, allocations: 252.3 kB / 1.12 GB, free: 5.238 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/1.146, allocations: 0.9495 MB / 1.121 GB, free: 4.266 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.054e-05/1.146, allocations: 41.7 kB / 1.121 GB, free: 4.219 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007764/1.147, allocations: 0.5624 MB / 1.121 GB, free: 3.648 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/1.147, allocations: 343.1 kB / 1.122 GB, free: 3.309 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.813e-05/1.148, allocations: 20 kB / 1.122 GB, free: 3.289 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001567/1.148, allocations: 357.9 kB / 1.122 GB, free: 2.934 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008062/1.149, allocations: 398.4 kB / 1.122 GB, free: 2.547 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00091/1.149, allocations: 0.5786 MB / 1.123 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008247/1.15, allocations: 478.7 kB / 1.123 GB, free: 1.441 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/1.15, allocations: 4 kB / 1.123 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003386/1.154, allocations: 1.344 MB / 1.125 GB, free: 88 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001701/1.154, allocations: 188.3 kB / 1.125 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/1.154, allocations: 8 kB / 1.125 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/1.155, allocations: 264.5 kB / 1.125 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009499/1.156, allocations: 227.7 kB / 1.125 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/1.16, allocations: 1.985 MB / 1.127 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/1.161, allocations: 120.3 kB / 1.127 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.161, allocations: 47.97 kB / 1.127 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/1.161, allocations: 4 kB / 1.127 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002213/1.163, allocations: 1.015 MB / 1.128 GB, free: 12.06 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/1.163, allocations: 11.94 kB / 1.128 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/1.163, allocations: 8 kB / 1.128 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000884/1.164, allocations: 235.8 kB / 1.129 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/1.164, allocations: 12.03 kB / 1.129 GB, free: 11.8 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008526/1.165, allocations: 119.6 kB / 1.129 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/1.165, allocations: 51.95 kB / 1.129 GB, free: 11.63 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0008701/1.166, allocations: 458.2 kB / 1.129 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/1.167, allocations: 122.6 kB / 1.129 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/1.17, allocations: 1.482 MB / 1.131 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.17, allocations: 12 kB / 1.131 GB, free: 9.547 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.17, allocations: 4 kB / 1.131 GB, free: 9.543 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.17, allocations: 7.922 kB / 1.131 GB, free: 9.535 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005105/1.175, allocations: 2.836 MB / 1.134 GB, free: 6.621 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.175, allocations: 8 kB / 1.134 GB, free: 6.613 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009382/1.176, allocations: 195.7 kB / 1.134 GB, free: 6.422 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000744/1.177, allocations: 208.6 kB / 1.134 GB, free: 6.215 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.055e-05/1.177, allocations: 35.97 kB / 1.134 GB, free: 6.18 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/1.179, allocations: 1.823 MB / 1.136 GB, free: 4.227 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/1.179, allocations: 7.938 kB / 1.136 GB, free: 4.219 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/1.182, allocations: 1.49 MB / 1.137 GB, free: 2.688 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007186/1.183, allocations: 371.1 kB / 1.138 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003031/1.183, allocations: 23.98 kB / 1.138 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009773/1.184, allocations: 107.9 kB / 1.138 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/1.184, allocations: 92.83 kB / 1.138 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/1.185, allocations: 43.97 kB / 1.138 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001177/1.186, allocations: 0.6694 MB / 1.139 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.91e-07/1.186, allocations: 0 / 1.139 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002109/1.188, allocations: 0.5156 MB / 1.139 GB, free: 0.8477 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001767/1.19, allocations: 0.6548 MB / 1.14 GB, free: 404 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003255/1.193, allocations: 1.728 MB / 1.141 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/1.193, allocations: 4 kB / 1.141 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001278/1.194, allocations: 0.7041 MB / 1.142 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/1.196, allocations: 331.2 kB / 1.142 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004659/1.201, allocations: 2.963 MB / 1.145 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008835/1.202, allocations: 1.212 MB / 1.146 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001498/1.203, allocations: 472.8 kB / 1.147 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003516/1.203, allocations: 123.4 kB / 1.147 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of SimCode: time 5.51e-07/1.203, allocations: 4 kB / 1.147 GB, free: 8.777 MB / 0.9044 GB Notification: Performance of Templates: time 0.03171/1.235, allocations: 18.1 MB / 1.165 GB, free: 6.84 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches