Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_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.001006/0.001006, allocations: 90.75 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.001201/0.001201, 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.503/1.503, allocations: 223.2 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.568/2.568, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004543, allocations: 8 kB / 0.8378 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8273/0.8278, allocations: 146.8 MB / 0.9811 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.007763/0.8356, allocations: 6.151 MB / 0.9871 GB, free: 100 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.1592/0.9949, allocations: 138 MB / 1.122 GB, free: 5.734 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.9961, allocations: 23.88 kB / 1.122 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0007844/0.9969, allocations: 242.4 kB / 1.122 GB, free: 5.473 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002028/0.9989, allocations: 0.6175 MB / 1.123 GB, free: 4.855 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002288/1.001, allocations: 0.7788 MB / 1.123 GB, free: 4.086 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002112/1.003, allocations: 1.631 MB / 1.125 GB, free: 2.449 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/1.005, allocations: 0.9032 MB / 1.126 GB, free: 1.5 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006964/1.005, allocations: 469.9 kB / 1.126 GB, free: 1.039 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008709/1.006, allocations: 0.5716 MB / 1.127 GB, free: 476 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001162/1.006, allocations: 40 kB / 1.127 GB, free: 436 kB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/1.007, allocations: 411.5 kB / 1.127 GB, free: 24 kB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000325/1.008, allocations: 298.9 kB / 1.128 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0002777/1.008, allocations: 256.9 kB / 1.128 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001738/1.01, allocations: 1.543 MB / 1.129 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/1.01, allocations: 0 / 1.129 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.903e-06/1.01, allocations: 0 / 1.129 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.808e-05/1.01, allocations: 0 / 1.129 GB, free: 13.93 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 273 * Number of variables: 273 Notification: Performance of Generate backend data structure: time 0.002941/1.013, allocations: 1.522 MB / 1.131 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/1.013, allocations: 11.97 kB / 1.131 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001997/1.013, allocations: 164.8 kB / 1.131 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/1.014, allocations: 277.9 kB / 1.131 GB, free: 11.89 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/1.016, allocations: 0.9218 MB / 1.132 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/1.016, allocations: 82.09 kB / 1.132 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/1.016, allocations: 100 kB / 1.132 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/1.018, allocations: 1.226 MB / 1.134 GB, free: 9.438 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/1.018, allocations: 7.922 kB / 1.134 GB, free: 9.43 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-05/1.018, allocations: 47.98 kB / 1.134 GB, free: 9.383 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.741e-05/1.018, allocations: 62 kB / 1.134 GB, free: 9.32 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/1.02, allocations: 1.339 MB / 1.135 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006958/1.027, allocations: 4.528 MB / 1.139 GB, free: 3.219 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/1.029, allocations: 0.8946 MB / 1.14 GB, free: 2.32 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/1.03, allocations: 371.7 kB / 1.141 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.064e-05/1.03, allocations: 36.94 kB / 1.141 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009462/1.031, allocations: 0.5382 MB / 1.141 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 6.302e-06/1.031, allocations: 7.922 kB / 1.141 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of matching and sorting (n=89): time 0.002471/1.033, allocations: 1.212 MB / 1.142 GB, free: 112 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000213/1.034, allocations: 299.8 kB / 1.143 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/1.035, allocations: 0.9418 MB / 1.144 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 7.574e-05/1.035, allocations: 49.7 kB / 1.144 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/1.036, allocations: 0.5466 MB / 1.144 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/1.036, allocations: 287.8 kB / 1.145 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/1.036, allocations: 20 kB / 1.145 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001937/1.036, allocations: 341.9 kB / 1.145 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000507/1.037, allocations: 285.8 kB / 1.145 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006737/1.037, allocations: 467.9 kB / 1.146 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006108/1.038, allocations: 342.8 kB / 1.146 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.038, allocations: 0 / 1.146 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001587/1.04, allocations: 0.8994 MB / 1.147 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.04, allocations: 178.4 kB / 1.147 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/1.04, allocations: 4.094 kB / 1.147 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/1.04, allocations: 32.78 kB / 1.147 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007055/1.041, allocations: 191.7 kB / 1.147 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/1.042, allocations: 1.289 MB / 1.148 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007868/1.043, allocations: 119.3 kB / 1.149 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/1.043, allocations: 39.98 kB / 1.149 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/1.043, allocations: 4 kB / 1.149 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001336/1.044, allocations: 0.7691 MB / 1.149 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/1.044, allocations: 0 / 1.149 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/1.044, allocations: 8 kB / 1.149 GB, free: 8.684 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006791/1.045, allocations: 187.7 kB / 1.15 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/1.045, allocations: 8 kB / 1.15 GB, free: 8.492 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007054/1.046, allocations: 120.1 kB / 1.15 GB, free: 8.375 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-05/1.046, allocations: 39.97 kB / 1.15 GB, free: 8.336 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (107): * Single equations (assignments): 106 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007025/1.047, allocations: 418.3 kB / 1.15 GB, free: 7.918 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/1.047, allocations: 118.6 kB / 1.15 GB, free: 7.801 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/1.049, allocations: 1.076 MB / 1.151 GB, free: 6.715 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/1.049, allocations: 8 kB / 1.151 GB, free: 6.707 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/1.049, allocations: 0 / 1.151 GB, free: 6.707 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/1.049, allocations: 7.984 kB / 1.151 GB, free: 6.699 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/1.052, allocations: 2.385 MB / 1.154 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/1.052, allocations: 8.125 kB / 1.154 GB, free: 4.223 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006306/1.053, allocations: 167.7 kB / 1.154 GB, free: 4.059 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/1.053, allocations: 32.73 kB / 1.154 GB, free: 4.023 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.393e-05/1.053, allocations: 23.98 kB / 1.154 GB, free: 4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/1.054, allocations: 1.28 MB / 1.155 GB, free: 2.586 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.054, allocations: 0 / 1.155 GB, free: 2.586 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/1.056, allocations: 1.054 MB / 1.156 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005646/1.057, allocations: 331.2 kB / 1.156 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/1.057, allocations: 27.98 kB / 1.156 GB, free: 1.129 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007616/1.058, allocations: 80.5 kB / 1.157 GB, free: 1.051 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/1.058, allocations: 76.89 kB / 1.157 GB, free: 0.9766 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/1.058, allocations: 35.97 kB / 1.157 GB, free: 0.9414 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0009811/1.059, allocations: 0.6652 MB / 1.157 GB, free: 272 kB / 0.9044 GB Notification: Performance of sort global known variables: time 1.7e-07/1.059, allocations: 0 / 1.157 GB, free: 272 kB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001667/1.061, allocations: 0.5685 MB / 1.158 GB, free: 15.69 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.conTimMin.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003307/1.064, allocations: 2.149 MB / 1.16 GB, free: 13.71 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002341/1.066, allocations: 1.278 MB / 1.161 GB, free: 12.42 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.066, allocations: 0 / 1.161 GB, free: 12.42 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0007679/1.067, allocations: 0.5326 MB / 1.162 GB, free: 11.88 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/1.069, allocations: 315 kB / 1.162 GB, free: 11.57 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/1.08, allocations: 6.61 MB / 1.168 GB, free: 4.688 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/1.081, allocations: 1.166 MB / 1.17 GB, free: 3.488 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001479/1.082, allocations: 416.3 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007335/1.083, allocations: 499.2 kB / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of SimCode: time 9.32e-07/1.083, allocations: 0 / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05419/1.137, allocations: 25.64 MB / 1.195 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002717/1.138, allocations: 263.8 kB / 1.196 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.615/3.753, allocations: 0 / 1.196 GB, free: 8.98 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat