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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.65/2.65, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001569/0.001569, allocations: 184.7 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.00107/0.00107, allocations: 103.8 kB / 0.9318 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.372e-05/4.424e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.317, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.076/5.394, allocations: 1.763 GB / 2.982 GB, free: 50.53 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/5.394, allocations: 99.94 kB / 2.982 GB, free: 50.43 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 1.043/6.437, allocations: 64.76 MB / 3.045 GB, free: 405.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.214e-06/6.437, allocations: 3.406 kB / 3.045 GB, free: 405.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001359/6.437, allocations: 31.62 kB / 3.045 GB, free: 405.2 MB / 1.167 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.003208/6.44, allocations: 1.41 MB / 3.046 GB, free: 404.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/6.441, allocations: 9.844 kB / 3.046 GB, free: 404.4 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003149/6.441, allocations: 169.5 kB / 3.046 GB, free: 404.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002051/6.443, allocations: 307.6 kB / 3.047 GB, free: 404.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/6.445, allocations: 0.8369 MB / 3.048 GB, free: 403.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/6.445, allocations: 79.75 kB / 3.048 GB, free: 403.9 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/6.445, allocations: 105 kB / 3.048 GB, free: 403.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/6.448, allocations: 1.27 MB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.594e-05/6.448, allocations: 4.625 kB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/6.448, allocations: 44.14 kB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/6.449, allocations: 63.02 kB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00285/6.451, allocations: 1.415 MB / 3.05 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008679/6.46, allocations: 4.759 MB / 3.055 GB, free: 401.4 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/6.462, allocations: 0.9655 MB / 3.056 GB, free: 401.4 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007798/6.463, allocations: 414.6 kB / 3.056 GB, free: 401.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002848/6.463, allocations: 119.7 kB / 3.057 GB, free: 401.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/6.464, allocations: 0.5543 MB / 3.057 GB, free: 401.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=94): time 4.849e-06/6.464, allocations: 1 kB / 3.057 GB, free: 401.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=95): time 0.003847/6.468, allocations: 1.434 MB / 3.059 GB, free: 400.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/6.468, allocations: 303.4 kB / 3.059 GB, free: 400.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/6.47, allocations: 0.8808 MB / 3.06 GB, free: 400.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/6.47, allocations: 45.27 kB / 3.06 GB, free: 400.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005341/6.471, allocations: 0.5429 MB / 3.06 GB, free: 400 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/6.471, allocations: 313.6 kB / 3.061 GB, free: 399.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/6.471, allocations: 20.22 kB / 3.061 GB, free: 399.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.000126/6.471, allocations: 339.6 kB / 3.061 GB, free: 399.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006738/6.472, allocations: 330.7 kB / 3.061 GB, free: 399.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009728/6.473, allocations: 0.5194 MB / 3.062 GB, free: 399.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008958/6.474, allocations: 409.9 kB / 3.062 GB, free: 399.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/6.474, allocations: 1.094 kB / 3.062 GB, free: 399.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003034/6.477, allocations: 1.141 MB / 3.063 GB, free: 398.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000418/6.477, allocations: 1.15 MB / 3.064 GB, free: 397.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/6.477, allocations: 3 kB / 3.064 GB, free: 397.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/6.478, allocations: 210.1 kB / 3.065 GB, free: 397.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009907/6.479, allocations: 202.4 kB / 3.065 GB, free: 397.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007337/6.48, allocations: 0.6503 MB / 3.065 GB, free: 397.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/6.481, allocations: 101.6 kB / 3.065 GB, free: 397.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/6.482, allocations: 34.06 kB / 3.065 GB, free: 397.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/6.482, allocations: 4.438 kB / 3.065 GB, free: 397.1 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001565/6.483, allocations: 0.8367 MB / 3.066 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/6.483, allocations: 6.812 kB / 3.066 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/6.483, allocations: 8.125 kB / 3.066 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000846/6.484, allocations: 207.8 kB / 3.067 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/6.484, allocations: 11.53 kB / 3.067 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009397/6.485, allocations: 103.3 kB / 3.067 GB, free: 396.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.387e-05/6.485, allocations: 37.72 kB / 3.067 GB, free: 396.7 MB / 1.167 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.000305/6.485, allocations: 162.2 kB / 3.067 GB, free: 396.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000277/6.486, allocations: 113.1 kB / 3.067 GB, free: 396.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003301/6.489, allocations: 1.352 MB / 3.068 GB, free: 396 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/6.489, allocations: 11.22 kB / 3.068 GB, free: 396 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/6.489, allocations: 1.125 kB / 3.068 GB, free: 396 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/6.489, allocations: 10.7 kB / 3.068 GB, free: 396 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005283/6.494, allocations: 2.68 MB / 3.071 GB, free: 394.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/6.494, allocations: 1.125 kB / 3.071 GB, free: 394.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008318/6.495, allocations: 200.2 kB / 3.071 GB, free: 394.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008394/6.496, allocations: 214.3 kB / 3.071 GB, free: 394.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-05/6.496, allocations: 26.11 kB / 3.071 GB, free: 394.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002014/6.498, allocations: 1.823 MB / 3.073 GB, free: 393.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/6.498, allocations: 2.344 kB / 3.073 GB, free: 393.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/6.501, allocations: 1.446 MB / 3.074 GB, free: 392.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007818/6.502, allocations: 365.3 kB / 3.075 GB, free: 392.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/6.502, allocations: 20.03 kB / 3.075 GB, free: 392.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008112/6.503, allocations: 97.27 kB / 3.075 GB, free: 392.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/6.503, allocations: 79.05 kB / 3.075 GB, free: 392.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.192e-05/6.503, allocations: 37.14 kB / 3.075 GB, free: 392.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001226/6.505, allocations: 0.6992 MB / 3.076 GB, free: 391.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.483e-06/6.505, allocations: 0 / 3.076 GB, free: 391.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002191/6.507, allocations: 0.5257 MB / 3.076 GB, free: 391.9 MB / 1.167 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.004559/6.511, allocations: 3.027 MB / 3.079 GB, free: 390 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003037/6.514, allocations: 1.388 MB / 3.081 GB, free: 389.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/6.514, allocations: 1.344 kB / 3.081 GB, free: 389.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001152/6.516, allocations: 0.6265 MB / 3.081 GB, free: 389.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/6.518, allocations: 299.1 kB / 3.081 GB, free: 389.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/6.523, allocations: 2.133 MB / 3.084 GB, free: 388.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008805/6.524, allocations: 1.216 MB / 3.085 GB, free: 387.5 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002245/6.526, allocations: 0.6115 MB / 3.085 GB, free: 387.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006308/6.527, allocations: 478.8 kB / 3.086 GB, free: 387 MB / 1.167 GB Notification: Performance of SimCode: time 1.463e-06/6.527, allocations: 0 / 3.086 GB, free: 387 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0601/6.587, allocations: 28.46 MB / 3.114 GB, free: 385 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001595/6.587, allocations: 240.6 kB / 3.114 GB, free: 384.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.155/9.742, allocations: 0 / 3.114 GB, free: 384.7 MB / 1.167 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) 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