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/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.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.502/2.502, allocations: 387.1 MB / 399.7 MB, free: 9.453 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.001035/0.001036, allocations: 180.9 kB / 492.3 MB, free: 0.5977 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.582/1.582, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0008505/0.0008506, allocations: 102.3 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.078e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2553, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.314/4.57, allocations: 1.762 GB / 2.974 GB, free: 102.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/4.57, allocations: 107.9 kB / 2.974 GB, free: 102.5 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1482/4.718, allocations: 64.77 MB / 3.038 GB, free: 37.39 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.443e-06/4.718, allocations: 0 / 3.038 GB, free: 37.39 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001519/4.718, allocations: 39.98 kB / 3.038 GB, free: 37.35 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.003501/4.722, allocations: 1.4 MB / 3.039 GB, free: 35.89 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/4.722, allocations: 8.031 kB / 3.039 GB, free: 35.89 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003552/4.722, allocations: 172.9 kB / 3.039 GB, free: 35.71 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/4.724, allocations: 301.8 kB / 3.04 GB, free: 35.41 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/4.726, allocations: 0.8339 MB / 3.04 GB, free: 34.54 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.662e-05/4.726, allocations: 82.12 kB / 3.04 GB, free: 34.45 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/4.726, allocations: 108 kB / 3.041 GB, free: 34.35 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/4.728, allocations: 1.268 MB / 3.042 GB, free: 32.99 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/4.728, allocations: 3.938 kB / 3.042 GB, free: 32.98 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/4.728, allocations: 48 kB / 3.042 GB, free: 32.94 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.507e-05/4.728, allocations: 57.98 kB / 3.042 GB, free: 32.88 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/4.73, allocations: 1.417 MB / 3.043 GB, free: 31.46 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005392/4.736, allocations: 4.756 MB / 3.048 GB, free: 26.46 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/4.737, allocations: 0.977 MB / 3.049 GB, free: 25.46 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005038/4.738, allocations: 409.1 kB / 3.049 GB, free: 25.05 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001841/4.738, allocations: 122 kB / 3.049 GB, free: 24.92 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007116/4.738, allocations: 0.5574 MB / 3.05 GB, free: 24.34 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 3.487e-06/4.738, allocations: 0 / 3.05 GB, free: 24.34 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002495/4.741, allocations: 1.45 MB / 3.051 GB, free: 22.87 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/4.741, allocations: 295.5 kB / 3.052 GB, free: 22.52 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/4.742, allocations: 0.8845 MB / 3.053 GB, free: 21.61 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.202e-05/4.742, allocations: 41.7 kB / 3.053 GB, free: 21.56 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/4.743, allocations: 0.5351 MB / 3.053 GB, free: 21.02 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/4.743, allocations: 323.3 kB / 3.053 GB, free: 20.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/4.743, allocations: 20 kB / 3.053 GB, free: 20.68 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.646e-05/4.743, allocations: 338 kB / 3.054 GB, free: 20.34 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004571/4.743, allocations: 329.9 kB / 3.054 GB, free: 20.02 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/4.744, allocations: 0.5215 MB / 3.055 GB, free: 19.43 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005416/4.745, allocations: 405.9 kB / 3.055 GB, free: 19.04 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/4.745, allocations: 0 / 3.055 GB, free: 19.04 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001862/4.746, allocations: 1.136 MB / 3.056 GB, free: 17.89 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002039/4.747, allocations: 1.146 MB / 3.057 GB, free: 16.66 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/4.747, allocations: 4 kB / 3.057 GB, free: 16.65 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008471/4.748, allocations: 212.6 kB / 3.057 GB, free: 16.44 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/4.748, allocations: 211.7 kB / 3.058 GB, free: 16.23 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004572/4.749, allocations: 0.6383 MB / 3.058 GB, free: 15.57 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007461/4.75, allocations: 103.4 kB / 3.058 GB, free: 15.47 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-05/4.75, allocations: 43.97 kB / 3.058 GB, free: 15.43 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.777e-06/4.75, allocations: 4 kB / 3.058 GB, free: 15.42 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00114/4.751, allocations: 0.8341 MB / 3.059 GB, free: 14.59 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/4.751, allocations: 4 kB / 3.059 GB, free: 14.58 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/4.751, allocations: 8.375 kB / 3.059 GB, free: 14.57 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007754/4.752, allocations: 211.7 kB / 3.059 GB, free: 14.37 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/4.752, allocations: 8 kB / 3.059 GB, free: 14.36 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006646/4.752, allocations: 103.3 kB / 3.059 GB, free: 14.26 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/4.752, allocations: 35.98 kB / 3.06 GB, free: 14.22 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.0002001/4.753, allocations: 166.4 kB / 3.06 GB, free: 14.06 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/4.753, allocations: 114.6 kB / 3.06 GB, free: 13.95 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/4.755, allocations: 1.345 MB / 3.061 GB, free: 12.59 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/4.755, allocations: 15.98 kB / 3.061 GB, free: 12.57 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/4.755, allocations: 0 / 3.061 GB, free: 12.57 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/4.755, allocations: 11.91 kB / 3.061 GB, free: 12.56 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00356/4.759, allocations: 2.691 MB / 3.064 GB, free: 9.793 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/4.759, allocations: 4.094 kB / 3.064 GB, free: 9.789 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007479/4.76, allocations: 191.6 kB / 3.064 GB, free: 9.602 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007601/4.76, allocations: 212.7 kB / 3.064 GB, free: 9.391 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.529e-05/4.76, allocations: 27.98 kB / 3.064 GB, free: 9.363 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/4.762, allocations: 1.823 MB / 3.066 GB, free: 7.406 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/4.762, allocations: 12.05 kB / 3.066 GB, free: 7.395 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/4.764, allocations: 1.433 MB / 3.067 GB, free: 5.879 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005198/4.765, allocations: 363.2 kB / 3.068 GB, free: 5.504 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/4.765, allocations: 24 kB / 3.068 GB, free: 5.48 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007893/4.766, allocations: 91.89 kB / 3.068 GB, free: 5.391 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/4.766, allocations: 80.83 kB / 3.068 GB, free: 5.312 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-05/4.766, allocations: 35.98 kB / 3.068 GB, free: 5.277 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0008069/4.767, allocations: 0.7002 MB / 3.069 GB, free: 4.562 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.8e-07/4.767, allocations: 8 kB / 3.069 GB, free: 4.555 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00148/4.768, allocations: 0.5231 MB / 3.069 GB, free: 4.031 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.003682/4.772, allocations: 3.036 MB / 3.072 GB, free: 1.086 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.6392/5.411, allocations: 1.381 MB / 3.073 GB, free: 388.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.578e-05/5.411, allocations: 2.812 kB / 3.073 GB, free: 388.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002584/5.414, allocations: 0.6233 MB / 3.074 GB, free: 388 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/5.416, allocations: 294.8 kB / 3.074 GB, free: 388 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005665/5.422, allocations: 2.125 MB / 3.076 GB, free: 387.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009949/5.423, allocations: 1.215 MB / 3.078 GB, free: 386.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002246/5.425, allocations: 0.6017 MB / 3.078 GB, free: 386.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006916/5.426, allocations: 482.5 kB / 3.079 GB, free: 386.8 MB / 1.151 GB Notification: Performance of SimCode: time 3.637e-06/5.426, allocations: 0 / 3.079 GB, free: 386.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07684/5.503, allocations: 28.45 MB / 3.106 GB, free: 385.4 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/5.503, allocations: 236.5 kB / 3.107 GB, free: 385.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.178/8.681, allocations: 0 / 3.107 GB, free: 385.1 MB / 1.151 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