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.0009851/0.0009851, allocations: 92.16 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.001134/0.001134, 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.462/1.462, allocations: 223.2 MB / 240 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.593/2.593, allocations: 409.4 MB / 0.684 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.000391, allocations: 8 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.82/0.8204, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.008587/0.829, allocations: 6.451 MB / 0.9874 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.1697/0.9988, allocations: 138.4 MB / 1.123 GB, free: 5.031 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/1, allocations: 23.88 kB / 1.123 GB, free: 5.008 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001366/1.002, allocations: 254.3 kB / 1.123 GB, free: 4.758 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00316/1.005, allocations: 0.6907 MB / 1.124 GB, free: 4.066 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002595/1.008, allocations: 0.822 MB / 1.124 GB, free: 3.254 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002735/1.01, allocations: 1.713 MB / 1.126 GB, free: 1.535 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002495/1.013, allocations: 1.296 MB / 1.127 GB, free: 196 kB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009919/1.014, allocations: 497.8 kB / 1.128 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/1.015, allocations: 0.6067 MB / 1.128 GB, free: 15.09 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001503/1.015, allocations: 40 kB / 1.128 GB, free: 15.05 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/1.016, allocations: 471.5 kB / 1.129 GB, free: 14.59 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0003456/1.017, allocations: 330.8 kB / 1.129 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0003367/1.017, allocations: 268.9 kB / 1.129 GB, free: 14 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001926/1.019, allocations: 1.683 MB / 1.131 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/1.019, allocations: 8 kB / 1.131 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.224e-06/1.019, allocations: 0 / 1.131 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.769e-05/1.019, allocations: 0 / 1.131 GB, free: 12.3 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003139/1.022, allocations: 1.581 MB / 1.133 GB, free: 10.67 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.022, allocations: 15.97 kB / 1.133 GB, free: 10.65 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002503/1.022, allocations: 177.3 kB / 1.133 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/1.024, allocations: 297.8 kB / 1.133 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/1.026, allocations: 0.9608 MB / 1.134 GB, free: 9.172 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.146e-05/1.026, allocations: 86.17 kB / 1.134 GB, free: 9.086 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/1.026, allocations: 112 kB / 1.134 GB, free: 8.977 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/1.028, allocations: 1.386 MB / 1.136 GB, free: 7.5 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/1.028, allocations: 0 / 1.136 GB, free: 7.5 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/1.028, allocations: 48 kB / 1.136 GB, free: 7.453 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.98e-05/1.029, allocations: 66.05 kB / 1.136 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002479/1.031, allocations: 1.518 MB / 1.137 GB, free: 5.859 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00697/1.038, allocations: 4.878 MB / 1.142 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/1.04, allocations: 1.09 MB / 1.143 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000752/1.041, allocations: 474.1 kB / 1.143 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002498/1.041, allocations: 118 kB / 1.143 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/1.042, allocations: 0.6546 MB / 1.144 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=103): time 3.066e-06/1.042, allocations: 0 / 1.144 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of matching and sorting (n=104): time 0.004969/1.047, allocations: 2.267 MB / 1.146 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/1.047, allocations: 248.3 kB / 1.147 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/1.049, allocations: 0.942 MB / 1.148 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.171e-05/1.049, allocations: 49.7 kB / 1.148 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005048/1.049, allocations: 0.5701 MB / 1.148 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/1.05, allocations: 343.1 kB / 1.148 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.656e-05/1.05, allocations: 20 kB / 1.148 GB, free: 9.789 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.05, allocations: 341.9 kB / 1.149 GB, free: 9.449 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006607/1.051, allocations: 377.8 kB / 1.149 GB, free: 9.082 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008346/1.051, allocations: 0.5755 MB / 1.15 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007629/1.052, allocations: 462.8 kB / 1.15 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.052, allocations: 0 / 1.15 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002614/1.055, allocations: 1.293 MB / 1.151 GB, free: 6.688 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/1.055, allocations: 184.5 kB / 1.152 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/1.055, allocations: 4 kB / 1.152 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/1.056, allocations: 260.5 kB / 1.152 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008636/1.057, allocations: 227.6 kB / 1.152 GB, free: 5.977 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002784/1.06, allocations: 1.998 MB / 1.154 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/1.061, allocations: 120.2 kB / 1.154 GB, free: 3.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.196e-05/1.061, allocations: 51.92 kB / 1.154 GB, free: 3.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/1.061, allocations: 4 kB / 1.154 GB, free: 3.676 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001661/1.063, allocations: 0.9563 MB / 1.155 GB, free: 2.719 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/1.063, allocations: 4 kB / 1.155 GB, free: 2.715 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/1.063, allocations: 8 kB / 1.155 GB, free: 2.707 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008474/1.063, allocations: 232.1 kB / 1.155 GB, free: 2.48 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/1.064, allocations: 15.94 kB / 1.155 GB, free: 2.465 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007786/1.064, allocations: 119.2 kB / 1.155 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.01e-05/1.064, allocations: 39.98 kB / 1.156 GB, free: 2.309 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.0007386/1.065, allocations: 440.8 kB / 1.156 GB, free: 1.867 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/1.065, allocations: 122.5 kB / 1.156 GB, free: 1.746 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/1.068, allocations: 1.486 MB / 1.157 GB, free: 248 kB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/1.068, allocations: 8 kB / 1.158 GB, free: 240 kB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.068, allocations: 4 kB / 1.158 GB, free: 236 kB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/1.068, allocations: 7.969 kB / 1.158 GB, free: 228 kB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/1.073, allocations: 2.844 MB / 1.16 GB, free: 13.3 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/1.073, allocations: 0 / 1.16 GB, free: 13.3 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007639/1.074, allocations: 199.7 kB / 1.16 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007676/1.074, allocations: 208.8 kB / 1.161 GB, free: 12.9 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/1.075, allocations: 31.98 kB / 1.161 GB, free: 12.87 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002055/1.077, allocations: 1.835 MB / 1.163 GB, free: 10.9 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/1.077, allocations: 11.92 kB / 1.163 GB, free: 10.89 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/1.079, allocations: 1.486 MB / 1.164 GB, free: 9.359 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006016/1.08, allocations: 367.1 kB / 1.164 GB, free: 8.98 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/1.08, allocations: 27.98 kB / 1.164 GB, free: 8.953 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008243/1.081, allocations: 111.3 kB / 1.164 GB, free: 8.848 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/1.081, allocations: 84.88 kB / 1.165 GB, free: 8.766 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/1.081, allocations: 39.98 kB / 1.165 GB, free: 8.727 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001007/1.082, allocations: 0.6694 MB / 1.165 GB, free: 8.047 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/1.082, allocations: 11.88 kB / 1.165 GB, free: 8.035 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00165/1.084, allocations: 0.5155 MB / 1.166 GB, free: 7.52 MB / 0.92 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.004341/1.088, allocations: 2.602 MB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003021/1.091, allocations: 1.662 MB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.091, allocations: 0 / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001234/1.093, allocations: 0.7032 MB / 1.171 GB, free: 2.688 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/1.094, allocations: 336.5 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/1.108, allocations: 7.536 MB / 1.178 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/1.109, allocations: 1.22 MB / 1.179 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001598/1.111, allocations: 461 kB / 1.18 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/1.111, allocations: 0.5227 MB / 1.18 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of SimCode: time 1.402e-06/1.111, allocations: 4 kB / 1.18 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05234/1.164, allocations: 28.68 MB / 1.208 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/1.164, allocations: 290.5 kB / 1.209 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.654/3.818, allocations: 0 / 1.209 GB, free: 11.66 MB / 0.9669 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