Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 387.1 MB / 399.7 MB, free: 9.457 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009773/0.0009774, allocations: 172.9 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 221.3 MB / 0.7872 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008678/0.0008679, allocations: 94.02 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.475e-05/4.488e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.306, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.677/4.983, allocations: 1.766 GB / 2.978 GB, free: 74.02 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/4.983, allocations: 103 kB / 2.979 GB, free: 73.96 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1509/5.134, allocations: 68.73 MB / 3.046 GB, free: 8.543 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.454e-06/5.134, allocations: 0 / 3.046 GB, free: 8.543 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.624e-05/5.134, allocations: 39.92 kB / 3.046 GB, free: 8.504 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.002351/5.136, allocations: 1.405 MB / 3.047 GB, free: 7.043 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/5.136, allocations: 8.031 kB / 3.047 GB, free: 7.035 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001755/5.137, allocations: 165 kB / 3.047 GB, free: 6.863 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00148/5.138, allocations: 313.8 kB / 3.048 GB, free: 6.555 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/5.14, allocations: 0.8339 MB / 3.048 GB, free: 5.68 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/5.14, allocations: 82.12 kB / 3.048 GB, free: 5.598 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/5.14, allocations: 104 kB / 3.049 GB, free: 5.496 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/5.142, allocations: 1.273 MB / 3.05 GB, free: 4.133 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/5.142, allocations: 3.938 kB / 3.05 GB, free: 4.129 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/5.142, allocations: 51.94 kB / 3.05 GB, free: 4.078 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.665e-05/5.142, allocations: 53.98 kB / 3.05 GB, free: 4.023 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/5.144, allocations: 1.421 MB / 3.051 GB, free: 2.605 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7167/5.86, allocations: 4.738 MB / 3.056 GB, free: 385.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/5.862, allocations: 0.9736 MB / 3.057 GB, free: 385.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/5.863, allocations: 408.1 kB / 3.057 GB, free: 385.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002148/5.863, allocations: 125.8 kB / 3.057 GB, free: 385.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009051/5.864, allocations: 0.5576 MB / 3.058 GB, free: 385.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.614e-06/5.864, allocations: 0 / 3.058 GB, free: 385.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.003095/5.867, allocations: 1.435 MB / 3.059 GB, free: 385 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/5.867, allocations: 298.8 kB / 3.06 GB, free: 384.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/5.868, allocations: 0.8841 MB / 3.06 GB, free: 384.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.61e-05/5.869, allocations: 42.42 kB / 3.06 GB, free: 384.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004242/5.869, allocations: 0.5418 MB / 3.061 GB, free: 384.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/5.869, allocations: 316.1 kB / 3.061 GB, free: 384.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.677e-05/5.869, allocations: 18.03 kB / 3.061 GB, free: 384.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.267e-05/5.869, allocations: 346.3 kB / 3.062 GB, free: 383.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005493/5.87, allocations: 328.9 kB / 3.062 GB, free: 383.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007518/5.871, allocations: 0.5159 MB / 3.062 GB, free: 383.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007575/5.871, allocations: 408.2 kB / 3.063 GB, free: 383.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/5.871, allocations: 1.281 kB / 3.063 GB, free: 383.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002635/5.874, allocations: 1.135 MB / 3.064 GB, free: 383.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002669/5.874, allocations: 1.148 MB / 3.065 GB, free: 382.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/5.874, allocations: 7.984 kB / 3.065 GB, free: 382.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/5.875, allocations: 211 kB / 3.065 GB, free: 382.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000893/5.876, allocations: 211 kB / 3.066 GB, free: 382.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005603/5.877, allocations: 0.6385 MB / 3.066 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009529/5.878, allocations: 105.1 kB / 3.066 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-05/5.878, allocations: 38.08 kB / 3.066 GB, free: 381.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/5.878, allocations: 7.125 kB / 3.066 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001426/5.879, allocations: 0.8352 MB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/5.879, allocations: 3 kB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/5.879, allocations: 11.06 kB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000843/5.88, allocations: 210.5 kB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/5.88, allocations: 8.906 kB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008728/5.881, allocations: 104.5 kB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.828e-05/5.881, allocations: 39.36 kB / 3.067 GB, free: 381.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete 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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003007/5.882, allocations: 158.9 kB / 3.068 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002463/5.882, allocations: 113.9 kB / 3.068 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/5.885, allocations: 1.357 MB / 3.069 GB, free: 381.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/5.885, allocations: 10.47 kB / 3.069 GB, free: 381.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/5.885, allocations: 1.562 kB / 3.069 GB, free: 381.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/5.885, allocations: 2.391 kB / 3.069 GB, free: 381.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004743/5.89, allocations: 2.689 MB / 3.072 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/5.89, allocations: 2.75 kB / 3.072 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008136/5.891, allocations: 196.4 kB / 3.072 GB, free: 381.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008435/5.891, allocations: 208 kB / 3.072 GB, free: 381 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.302e-05/5.892, allocations: 30.08 kB / 3.072 GB, free: 381 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/5.894, allocations: 1.821 MB / 3.074 GB, free: 379.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/5.894, allocations: 3.328 kB / 3.074 GB, free: 379.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/5.896, allocations: 1.446 MB / 3.075 GB, free: 379.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007408/5.897, allocations: 361 kB / 3.076 GB, free: 379.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/5.897, allocations: 29.08 kB / 3.076 GB, free: 379.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008091/5.898, allocations: 93.81 kB / 3.076 GB, free: 379.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/5.898, allocations: 72.86 kB / 3.076 GB, free: 379.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.6e-05/5.898, allocations: 37.2 kB / 3.076 GB, free: 379.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001206/5.9, allocations: 0.7002 MB / 3.077 GB, free: 379 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.843e-06/5.9, allocations: 3.094 kB / 3.077 GB, free: 379 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001924/5.901, allocations: 0.5337 MB / 3.077 GB, free: 379 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.004086/5.906, allocations: 3.016 MB / 3.08 GB, free: 377.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002794/5.908, allocations: 1.389 MB / 3.081 GB, free: 377.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/5.908, allocations: 1.312 kB / 3.081 GB, free: 377.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001142/5.91, allocations: 0.6304 MB / 3.082 GB, free: 377.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/5.911, allocations: 305.8 kB / 3.082 GB, free: 377.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004942/5.916, allocations: 2.13 MB / 3.084 GB, free: 376.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008762/5.917, allocations: 1.214 MB / 3.086 GB, free: 376.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002126/5.919, allocations: 0.6012 MB / 3.086 GB, free: 376 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006163/5.92, allocations: 478.8 kB / 3.087 GB, free: 376 MB / 1.151 GB Notification: Performance of SimCode: time 9.31e-07/5.92, allocations: 5.219 kB / 3.087 GB, free: 376 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0551/5.975, allocations: 28.46 MB / 3.114 GB, free: 374.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/5.975, allocations: 253.1 kB / 3.115 GB, free: 374.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.222/9.197, allocations: 8.281 kB / 3.115 GB, free: 374.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat