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.001151/0.001151, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.00129/0.00129, allocations: 177.3 kB / 15.95 MB, free: 216 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.478/1.478, allocations: 223.2 MB / 239.9 MB, free: 5.426 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.497/2.497, allocations: 390.3 MB / 0.6653 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003739, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9228/0.9232, allocations: 142.3 MB / 0.9535 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.008156/0.9314, allocations: 6.282 MB / 0.9596 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1809/1.112, allocations: 129.1 MB / 1.086 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/1.114, allocations: 23.88 kB / 1.086 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009818/1.115, allocations: 190.8 kB / 1.086 GB, free: 8.211 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002997/1.118, allocations: 0.7399 MB / 1.087 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003052/1.121, allocations: 0.877 MB / 1.088 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002549/1.124, allocations: 1.107 MB / 1.089 GB, free: 5.496 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002616/1.126, allocations: 1.287 MB / 1.09 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/1.127, allocations: 474 kB / 1.09 GB, free: 3.691 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009157/1.128, allocations: 0.5172 MB / 1.091 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001486/1.129, allocations: 44 kB / 1.091 GB, free: 3.129 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001276/1.13, allocations: 435.4 kB / 1.091 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003514/1.13, allocations: 318.9 kB / 1.092 GB, free: 2.391 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003489/1.131, allocations: 268.9 kB / 1.092 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002191/1.133, allocations: 1.683 MB / 1.093 GB, free: 444 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/1.133, allocations: 0 / 1.093 GB, free: 444 kB / 0.8419 GB Notification: Performance of FrontEnd: time 5.32e-06/1.133, allocations: 0 / 1.093 GB, free: 444 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.821e-05/1.133, allocations: 3.938 kB / 1.093 GB, free: 440 kB / 0.8419 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.003509/1.136, allocations: 1.596 MB / 1.095 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/1.136, allocations: 8.031 kB / 1.095 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001579/1.138, allocations: 305.8 kB / 1.095 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/1.14, allocations: 0.957 MB / 1.096 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/1.14, allocations: 78.23 kB / 1.096 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/1.14, allocations: 108 kB / 1.096 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/1.142, allocations: 1.382 MB / 1.098 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.778e-05/1.143, allocations: 0 / 1.098 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/1.143, allocations: 48 kB / 1.098 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/1.143, allocations: 66.05 kB / 1.098 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00248/1.145, allocations: 1.518 MB / 1.099 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007196/1.152, allocations: 4.884 MB / 1.104 GB, free: 5.039 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/1.154, allocations: 1.092 MB / 1.105 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002349/1.155, allocations: 122 kB / 1.105 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/1.156, allocations: 0.6583 MB / 1.106 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=103): time 3.166e-06/1.156, allocations: 4 kB / 1.106 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of matching and sorting (n=104): time 0.005139/1.161, allocations: 2.26 MB / 1.108 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/1.161, allocations: 252.3 kB / 1.108 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/1.162, allocations: 0.9381 MB / 1.109 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001082/1.162, allocations: 49.7 kB / 1.109 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004701/1.163, allocations: 0.5818 MB / 1.11 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003179/1.163, allocations: 339.1 kB / 1.11 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/1.163, allocations: 24 kB / 1.11 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001856/1.164, allocations: 345.9 kB / 1.111 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006995/1.164, allocations: 381.8 kB / 1.111 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008998/1.165, allocations: 0.5656 MB / 1.112 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007885/1.166, allocations: 466.8 kB / 1.112 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/1.166, allocations: 112 / 1.112 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002733/1.169, allocations: 1.297 MB / 1.113 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005634/1.169, allocations: 1.232 MB / 1.114 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/1.169, allocations: 4 kB / 1.114 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/1.171, allocations: 272.5 kB / 1.115 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009698/1.172, allocations: 219.7 kB / 1.115 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003138/1.175, allocations: 2.038 MB / 1.117 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/1.176, allocations: 119.4 kB / 1.117 GB, free: 7.336 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/1.176, allocations: 39.98 kB / 1.117 GB, free: 7.297 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/1.176, allocations: 9.969 kB / 1.117 GB, free: 7.289 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001812/1.178, allocations: 0.9681 MB / 1.118 GB, free: 6.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/1.178, allocations: 4 kB / 1.118 GB, free: 6.316 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/1.178, allocations: 8 kB / 1.118 GB, free: 6.309 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009076/1.179, allocations: 223.7 kB / 1.118 GB, free: 6.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/1.179, allocations: 15.92 kB / 1.118 GB, free: 6.074 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/1.18, allocations: 117.2 kB / 1.118 GB, free: 5.961 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.34e-05/1.18, allocations: 43.97 kB / 1.118 GB, free: 5.918 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 ($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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 119 * 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.0007828/1.181, allocations: 445 kB / 1.119 GB, free: 5.473 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/1.181, allocations: 126.5 kB / 1.119 GB, free: 5.348 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003138/1.184, allocations: 1.475 MB / 1.12 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/1.184, allocations: 16 kB / 1.12 GB, free: 3.84 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.184, allocations: 0 / 1.12 GB, free: 3.84 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/1.184, allocations: 7.969 kB / 1.12 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004938/1.189, allocations: 2.848 MB / 1.123 GB, free: 0.9062 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.355e-06/1.189, allocations: 4 kB / 1.123 GB, free: 0.9023 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008064/1.19, allocations: 199.7 kB / 1.123 GB, free: 0.707 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000819/1.191, allocations: 208.7 kB / 1.124 GB, free: 0.5 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.586e-05/1.191, allocations: 31.98 kB / 1.124 GB, free: 480 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/1.193, allocations: 1.878 MB / 1.125 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/1.193, allocations: 4.062 kB / 1.125 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002815/1.196, allocations: 1.575 MB / 1.127 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006957/1.197, allocations: 367.1 kB / 1.127 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/1.197, allocations: 27.95 kB / 1.127 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00088/1.198, allocations: 111.9 kB / 1.127 GB, free: 12.28 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/1.198, allocations: 88.81 kB / 1.128 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.022e-05/1.198, allocations: 39.98 kB / 1.128 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009405/1.199, allocations: 0.6694 MB / 1.128 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.2e-07/1.199, allocations: 0 / 1.128 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001578/1.201, allocations: 0.5116 MB / 1.129 GB, free: 10.96 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.001465/1.202, allocations: 0.658 MB / 1.129 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003121/1.205, allocations: 1.67 MB / 1.131 GB, free: 8.832 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/1.205, allocations: 4 kB / 1.131 GB, free: 8.828 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001172/1.207, allocations: 0.6998 MB / 1.132 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/1.208, allocations: 298.6 kB / 1.132 GB, free: 7.832 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/1.213, allocations: 2.959 MB / 1.135 GB, free: 4.824 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008755/1.214, allocations: 1.246 MB / 1.136 GB, free: 3.547 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001603/1.215, allocations: 464.9 kB / 1.137 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/1.215, allocations: 127.4 kB / 1.137 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of SimCode: time 6.61e-07/1.215, allocations: 0 / 1.137 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of Templates: time 0.03389/1.249, allocations: 18.09 MB / 1.154 GB, free: 1.039 MB / 0.9044 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","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches