Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_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.001454/0.001454, allocations: 99.86 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.001595/0.001596, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.531/2.531, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.393/4.393, allocations: 409.2 MB / 0.6838 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000653/0.0006531, allocations: 8 kB / 0.8375 GB, free: 6.578 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.401/1.402, allocations: 146.8 MB / 0.9809 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.01291/1.415, allocations: 6.288 MB / 0.987 GB, free: 24 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.2657/1.681, allocations: 129.1 MB / 1.113 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/1.683, allocations: 19.88 kB / 1.113 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0009305/1.684, allocations: 198.8 kB / 1.113 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003751/1.687, allocations: 0.739 MB / 1.114 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004135/1.691, allocations: 0.8708 MB / 1.115 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003987/1.695, allocations: 1.114 MB / 1.116 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003647/1.699, allocations: 1.294 MB / 1.117 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001412/1.701, allocations: 474.1 kB / 1.118 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/1.702, allocations: 0.5249 MB / 1.118 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002127/1.702, allocations: 40 kB / 1.118 GB, free: 9.289 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/1.704, allocations: 431.4 kB / 1.119 GB, free: 8.867 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0006193/1.705, allocations: 322.8 kB / 1.119 GB, free: 8.551 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000602/1.705, allocations: 268.9 kB / 1.119 GB, free: 8.281 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003332/1.709, allocations: 1.675 MB / 1.121 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/1.709, allocations: 0 / 1.121 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.986e-06/1.709, allocations: 0 / 1.121 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.199e-05/1.709, allocations: 0 / 1.121 GB, free: 6.602 MB / 0.8731 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.004255/1.713, allocations: 1.589 MB / 1.122 GB, free: 4.957 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/1.713, allocations: 8.031 kB / 1.122 GB, free: 4.949 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003865/1.713, allocations: 177.3 kB / 1.123 GB, free: 4.766 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/1.715, allocations: 317.8 kB / 1.123 GB, free: 4.453 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/1.718, allocations: 0.953 MB / 1.124 GB, free: 3.457 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/1.718, allocations: 82.23 kB / 1.124 GB, free: 3.375 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/1.718, allocations: 112 kB / 1.124 GB, free: 3.266 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002938/1.721, allocations: 1.374 MB / 1.125 GB, free: 1.801 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/1.721, allocations: 7.938 kB / 1.125 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/1.722, allocations: 44 kB / 1.125 GB, free: 1.75 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/1.722, allocations: 66.05 kB / 1.125 GB, free: 1.684 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002815/1.725, allocations: 1.514 MB / 1.127 GB, free: 164 kB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009034/1.734, allocations: 4.889 MB / 1.132 GB, free: 11.02 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002408/1.736, allocations: 1.094 MB / 1.133 GB, free: 9.91 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003167/1.736, allocations: 122 kB / 1.133 GB, free: 9.773 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001635/1.738, allocations: 0.6546 MB / 1.134 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=103): time 3.276e-06/1.738, allocations: 0 / 1.134 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of matching and sorting (n=104): time 0.006871/1.745, allocations: 2.256 MB / 1.136 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/1.745, allocations: 248.3 kB / 1.136 GB, free: 6.508 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/1.747, allocations: 0.9536 MB / 1.137 GB, free: 5.531 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001828/1.747, allocations: 45.7 kB / 1.137 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.000666/1.748, allocations: 0.5663 MB / 1.137 GB, free: 4.906 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004511/1.748, allocations: 347 kB / 1.138 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.42e-05/1.748, allocations: 20.11 kB / 1.138 GB, free: 4.543 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000181/1.749, allocations: 349.9 kB / 1.138 GB, free: 4.195 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000828/1.749, allocations: 377.8 kB / 1.139 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/1.751, allocations: 0.5755 MB / 1.139 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009312/1.751, allocations: 458.8 kB / 1.14 GB, free: 2.738 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/1.751, allocations: 4 kB / 1.14 GB, free: 2.734 MB / 0.8887 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00374/1.755, allocations: 1.297 MB / 1.141 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008607/1.756, allocations: 1.226 MB / 1.142 GB, free: 112 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/1.756, allocations: 7.984 kB / 1.142 GB, free: 104 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002069/1.758, allocations: 264.5 kB / 1.142 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/1.76, allocations: 219.7 kB / 1.142 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004567/1.764, allocations: 2.037 MB / 1.144 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/1.766, allocations: 137.5 kB / 1.145 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/1.767, allocations: 39.98 kB / 1.145 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/1.767, allocations: 4 kB / 1.145 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002924/1.769, allocations: 0.9641 MB / 1.146 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/1.77, allocations: 4 kB / 1.146 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/1.77, allocations: 8 kB / 1.146 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009852/1.771, allocations: 224.1 kB / 1.146 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/1.771, allocations: 15.98 kB / 1.146 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/1.772, allocations: 119.2 kB / 1.146 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/1.772, allocations: 44.05 kB / 1.146 GB, free: 11.91 MB / 0.9044 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.001248/1.774, allocations: 449 kB / 1.146 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004874/1.774, allocations: 118.6 kB / 1.146 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005475/1.78, allocations: 1.486 MB / 1.148 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.183e-05/1.78, allocations: 12 kB / 1.148 GB, free: 9.828 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/1.78, allocations: 3.953 kB / 1.148 GB, free: 9.824 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.429e-05/1.78, allocations: 7.984 kB / 1.148 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008744/1.788, allocations: 2.848 MB / 1.151 GB, free: 6.891 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.789, allocations: 0 / 1.151 GB, free: 6.891 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/1.79, allocations: 203.7 kB / 1.151 GB, free: 6.691 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/1.792, allocations: 208.8 kB / 1.151 GB, free: 6.484 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/1.792, allocations: 27.98 kB / 1.151 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003773/1.796, allocations: 1.874 MB / 1.153 GB, free: 4.449 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/1.796, allocations: 4.031 kB / 1.153 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005195/1.801, allocations: 1.583 MB / 1.155 GB, free: 2.781 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/1.802, allocations: 363.1 kB / 1.155 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/1.802, allocations: 28 kB / 1.155 GB, free: 2.379 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/1.804, allocations: 114.7 kB / 1.155 GB, free: 2.27 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/1.804, allocations: 84.88 kB / 1.155 GB, free: 2.188 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/1.804, allocations: 43.98 kB / 1.155 GB, free: 2.145 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001752/1.806, allocations: 0.6694 MB / 1.156 GB, free: 1.465 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.91e-07/1.806, allocations: 0 / 1.156 GB, free: 1.465 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00308/1.809, allocations: 0.5077 MB / 1.156 GB, free: 0.957 MB / 0.9044 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.007895/1.817, allocations: 3.184 MB / 1.159 GB, free: 13.9 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.005844/1.823, allocations: 1.658 MB / 1.161 GB, free: 12.24 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.566e-05/1.823, allocations: 4 kB / 1.161 GB, free: 12.23 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.002278/1.825, allocations: 0.7036 MB / 1.162 GB, free: 11.52 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002874/1.828, allocations: 301.2 kB / 1.162 GB, free: 11.23 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02778/1.856, allocations: 9.409 MB / 1.171 GB, free: 1.496 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/1.857, allocations: 1.243 MB / 1.172 GB, free: 224 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002285/1.86, allocations: 469 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008334/1.86, allocations: 0.5266 MB / 1.173 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of SimCode: time 1.663e-06/1.86, allocations: 0 / 1.173 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08803/1.949, allocations: 28.64 MB / 1.201 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003722/1.949, allocations: 274.2 kB / 1.202 GB, free: 2.629 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.365/6.314, allocations: 0 / 1.202 GB, free: 2.629 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat