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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000861/0.0008609, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001147/0.001147, allocations: 172.7 kB / 15.95 MB, free: 208 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.461/1.461, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.57/2.57, allocations: 390.4 MB / 0.6655 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003985, allocations: 12 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8673/0.8677, allocations: 142.3 MB / 0.9539 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.007894/0.8757, allocations: 6.451 MB / 0.9602 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1805/1.056, allocations: 138.4 MB / 1.095 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001188/1.057, allocations: 23.88 kB / 1.095 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008349/1.058, allocations: 250.3 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002799/1.061, allocations: 0.6796 MB / 1.096 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003409/1.065, allocations: 0.8263 MB / 1.097 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003031/1.068, allocations: 1.717 MB / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002792/1.07, allocations: 1.291 MB / 1.1 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008259/1.071, allocations: 497.8 kB / 1.1 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009481/1.072, allocations: 0.6106 MB / 1.101 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000146/1.072, allocations: 40 kB / 1.101 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/1.074, allocations: 471.5 kB / 1.102 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003515/1.074, allocations: 330.8 kB / 1.102 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003328/1.074, allocations: 260.9 kB / 1.102 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001979/1.076, allocations: 1.679 MB / 1.104 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.076, allocations: 0 / 1.104 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/1.076, allocations: 4 kB / 1.104 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.549e-05/1.076, allocations: 0 / 1.104 GB, free: 6.195 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.002948/1.079, allocations: 1.594 MB / 1.105 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/1.079, allocations: 16.03 kB / 1.105 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002049/1.08, allocations: 181.2 kB / 1.105 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/1.081, allocations: 297.8 kB / 1.106 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/1.082, allocations: 0.9493 MB / 1.107 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.752e-05/1.082, allocations: 82.23 kB / 1.107 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/1.083, allocations: 123.9 kB / 1.107 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/1.085, allocations: 1.374 MB / 1.108 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/1.085, allocations: 7.906 kB / 1.108 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/1.085, allocations: 48 kB / 1.108 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/1.085, allocations: 70.03 kB / 1.108 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002371/1.088, allocations: 1.518 MB / 1.11 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006742/1.094, allocations: 4.878 MB / 1.115 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/1.096, allocations: 1.093 MB / 1.116 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007551/1.097, allocations: 464.4 kB / 1.116 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002175/1.097, allocations: 126 kB / 1.116 GB, free: 8.895 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/1.098, allocations: 0.6507 MB / 1.117 GB, free: 8.219 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=103): time 2.375e-06/1.099, allocations: 0 / 1.117 GB, free: 8.219 MB / 0.8731 GB Notification: Performance of matching and sorting (n=104): time 0.004982/1.104, allocations: 2.267 MB / 1.119 GB, free: 5.922 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/1.104, allocations: 240.3 kB / 1.119 GB, free: 5.633 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/1.105, allocations: 0.9498 MB / 1.12 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.314e-05/1.105, allocations: 53.7 kB / 1.12 GB, free: 4.602 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004714/1.105, allocations: 0.574 MB / 1.121 GB, free: 4.02 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/1.106, allocations: 339.1 kB / 1.121 GB, free: 3.684 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/1.106, allocations: 16.11 kB / 1.121 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000126/1.106, allocations: 349.9 kB / 1.121 GB, free: 3.32 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/1.107, allocations: 381.8 kB / 1.122 GB, free: 2.945 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007764/1.107, allocations: 0.5794 MB / 1.122 GB, free: 2.305 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/1.108, allocations: 458.8 kB / 1.123 GB, free: 1.859 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.108, allocations: 0 / 1.123 GB, free: 1.859 MB / 0.8731 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00252/1.111, allocations: 1.293 MB / 1.124 GB, free: 0.5508 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.111, allocations: 194 kB / 1.124 GB, free: 328 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.111, allocations: 4 kB / 1.124 GB, free: 324 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/1.112, allocations: 260.5 kB / 1.125 GB, free: 60 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008684/1.113, allocations: 223.6 kB / 1.125 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002646/1.115, allocations: 1.991 MB / 1.127 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/1.116, allocations: 123.4 kB / 1.127 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-05/1.116, allocations: 35.98 kB / 1.127 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/1.116, allocations: 4 kB / 1.127 GB, free: 13.55 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001587/1.118, allocations: 0.9641 MB / 1.128 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.118, allocations: 4 kB / 1.128 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/1.118, allocations: 8 kB / 1.128 GB, free: 12.58 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008442/1.119, allocations: 228 kB / 1.128 GB, free: 12.36 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/1.119, allocations: 15.98 kB / 1.128 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007039/1.12, allocations: 111.3 kB / 1.128 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.721e-05/1.12, allocations: 51.91 kB / 1.128 GB, free: 12.18 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: 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.0006642/1.12, allocations: 440.8 kB / 1.129 GB, free: 11.74 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/1.121, allocations: 122.5 kB / 1.129 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002918/1.123, allocations: 1.486 MB / 1.13 GB, free: 10.11 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/1.123, allocations: 12 kB / 1.13 GB, free: 10.1 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.124, allocations: 0 / 1.13 GB, free: 10.1 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/1.124, allocations: 7.984 kB / 1.13 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00427/1.128, allocations: 2.848 MB / 1.133 GB, free: 7.168 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/1.128, allocations: 3.953 kB / 1.133 GB, free: 7.164 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007517/1.129, allocations: 203.7 kB / 1.133 GB, free: 6.965 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007635/1.129, allocations: 208.8 kB / 1.133 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.83e-05/1.129, allocations: 31.98 kB / 1.133 GB, free: 6.727 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/1.131, allocations: 1.823 MB / 1.135 GB, free: 4.773 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.131, allocations: 7.938 kB / 1.135 GB, free: 4.766 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/1.134, allocations: 1.494 MB / 1.137 GB, free: 3.23 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006205/1.135, allocations: 367.1 kB / 1.137 GB, free: 2.852 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/1.135, allocations: 24 kB / 1.137 GB, free: 2.828 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008152/1.136, allocations: 113.2 kB / 1.137 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/1.136, allocations: 88.97 kB / 1.137 GB, free: 2.633 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-05/1.136, allocations: 43.97 kB / 1.137 GB, free: 2.59 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009423/1.137, allocations: 0.6694 MB / 1.138 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/1.137, allocations: 4 kB / 1.138 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001588/1.139, allocations: 0.4999 MB / 1.138 GB, free: 1.406 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.004151/1.143, allocations: 2.618 MB / 1.141 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003028/1.146, allocations: 1.67 MB / 1.143 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.146, allocations: 0 / 1.143 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00108/1.147, allocations: 0.7032 MB / 1.143 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/1.148, allocations: 328 kB / 1.144 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/1.161, allocations: 7.537 MB / 1.151 GB, free: 4.398 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008086/1.162, allocations: 1.212 MB / 1.152 GB, free: 3.152 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001485/1.164, allocations: 480.9 kB / 1.153 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000707/1.164, allocations: 0.5227 MB / 1.153 GB, free: 2.156 MB / 0.9044 GB Notification: Performance of SimCode: time 6.51e-07/1.164, allocations: 3.938 kB / 1.153 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05461/1.219, allocations: 28.66 MB / 1.181 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/1.219, allocations: 287.8 kB / 1.181 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.813, allocations: 3.938 kB / 1.181 GB, free: 5.48 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat