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.283/2.283, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001098/0.001099, allocations: 178.9 kB / 498.1 MB, free: 5.73 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.523/1.523, allocations: 223.2 MB / 0.7948 GB, free: 17.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.0009972/0.0009973, allocations: 96.2 kB / 0.9346 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003732/0.0003732, allocations: 7.438 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3034, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.515/4.819, allocations: 1.762 GB / 2.985 GB, free: 223.4 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003429/4.819, allocations: 107.9 kB / 2.985 GB, free: 223.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1455/4.965, allocations: 65.2 MB / 3.049 GB, free: 167.9 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.974e-06/4.965, allocations: 0 / 3.049 GB, free: 167.9 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001519/4.965, allocations: 35.94 kB / 3.049 GB, free: 167.8 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.003636/4.969, allocations: 1.579 MB / 3.05 GB, free: 166.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/4.969, allocations: 8.031 kB / 3.05 GB, free: 166.3 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004743/4.969, allocations: 174.7 kB / 3.05 GB, free: 166.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/4.971, allocations: 301.9 kB / 3.051 GB, free: 165.9 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001844/4.973, allocations: 0.8435 MB / 3.052 GB, free: 165.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.156e-05/4.973, allocations: 81.95 kB / 3.052 GB, free: 165.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/4.973, allocations: 108 kB / 3.052 GB, free: 165 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002385/4.976, allocations: 1.302 MB / 3.053 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.766e-05/4.976, allocations: 7.938 kB / 3.053 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/4.976, allocations: 49.06 kB / 3.053 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.671e-05/4.976, allocations: 57.19 kB / 3.053 GB, free: 163.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002296/4.978, allocations: 1.474 MB / 3.055 GB, free: 162.8 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006388/4.985, allocations: 4.757 MB / 3.059 GB, free: 158.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/4.987, allocations: 1.024 MB / 3.06 GB, free: 157.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002377/4.987, allocations: 125.5 kB / 3.06 GB, free: 157.8 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009825/4.988, allocations: 0.5821 MB / 3.061 GB, free: 157.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=94): time 3.377e-06/4.988, allocations: 0 / 3.061 GB, free: 157.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=95): time 0.004469/4.992, allocations: 2.037 MB / 3.063 GB, free: 155.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.963e-05/4.992, allocations: 302.2 kB / 3.063 GB, free: 155.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/4.994, allocations: 0.8872 MB / 3.064 GB, free: 154.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.764e-05/4.994, allocations: 48.27 kB / 3.064 GB, free: 154.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005322/4.995, allocations: 0.5347 MB / 3.065 GB, free: 154.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002645/4.995, allocations: 318.9 kB / 3.065 GB, free: 153.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/4.995, allocations: 20 kB / 3.065 GB, free: 153.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.913e-05/4.995, allocations: 341.9 kB / 3.065 GB, free: 153.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006087/4.996, allocations: 349.8 kB / 3.066 GB, free: 153.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006957/4.996, allocations: 0.5372 MB / 3.066 GB, free: 152.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006522/4.997, allocations: 434.9 kB / 3.066 GB, free: 152.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/4.997, allocations: 7.938 kB / 3.066 GB, free: 152.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002164/4.999, allocations: 1.192 MB / 3.068 GB, free: 151 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002341/4.999, allocations: 1.134 MB / 3.069 GB, free: 149.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/5, allocations: 4 kB / 3.069 GB, free: 149.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000883/5, allocations: 220.6 kB / 3.069 GB, free: 149.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008003/5.001, allocations: 203.7 kB / 3.069 GB, free: 149.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005015/5.002, allocations: 0.642 MB / 3.07 GB, free: 148.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008958/5.003, allocations: 107.5 kB / 3.07 GB, free: 148.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.537e-05/5.003, allocations: 39.97 kB / 3.07 GB, free: 148.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/5.003, allocations: 4 kB / 3.07 GB, free: 148.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001375/5.004, allocations: 0.886 MB / 3.071 GB, free: 147.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/5.004, allocations: 4 kB / 3.071 GB, free: 147.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.206e-06/5.004, allocations: 4 kB / 3.071 GB, free: 147.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007535/5.005, allocations: 208.1 kB / 3.071 GB, free: 147.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/5.005, allocations: 15.98 kB / 3.071 GB, free: 147.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007394/5.006, allocations: 95.39 kB / 3.071 GB, free: 147.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/5.006, allocations: 39.97 kB / 3.071 GB, free: 147.3 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 () * 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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0007142/5.007, allocations: 430.7 kB / 3.072 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/5.007, allocations: 118.7 kB / 3.072 GB, free: 146.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/5.009, allocations: 1.388 MB / 3.073 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/5.009, allocations: 12 kB / 3.073 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/5.009, allocations: 0 / 3.073 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/5.009, allocations: 11.92 kB / 3.073 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004101/5.014, allocations: 2.734 MB / 3.076 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/5.014, allocations: 0 / 3.076 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000737/5.014, allocations: 203.9 kB / 3.076 GB, free: 142.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008038/5.015, allocations: 208.6 kB / 3.076 GB, free: 142.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-05/5.015, allocations: 27.98 kB / 3.076 GB, free: 142.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/5.017, allocations: 1.87 MB / 3.078 GB, free: 140.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/5.017, allocations: 4 kB / 3.078 GB, free: 140.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/5.019, allocations: 1.493 MB / 3.079 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006297/5.02, allocations: 363.2 kB / 3.08 GB, free: 138.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/5.02, allocations: 24 kB / 3.08 GB, free: 138.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008697/5.021, allocations: 91.91 kB / 3.08 GB, free: 138 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/5.021, allocations: 80.83 kB / 3.08 GB, free: 137.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.637e-05/5.021, allocations: 35.98 kB / 3.08 GB, free: 137.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001033/5.022, allocations: 0.7193 MB / 3.081 GB, free: 137.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 3e-07/5.022, allocations: 0 / 3.081 GB, free: 137.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001871/5.024, allocations: 0.5194 MB / 3.081 GB, free: 136.6 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) * Number of clocked states: 0 () * 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.004079/5.028, allocations: 3.128 MB / 3.084 GB, free: 133.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002547/5.031, allocations: 1.428 MB / 3.086 GB, free: 132.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/5.031, allocations: 0 / 3.086 GB, free: 132.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009998/5.032, allocations: 0.6574 MB / 3.086 GB, free: 131.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/5.033, allocations: 305.3 kB / 3.087 GB, free: 131.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/5.046, allocations: 8.888 MB / 3.095 GB, free: 122.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007663/5.047, allocations: 1.213 MB / 3.096 GB, free: 120.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001509/5.048, allocations: 464.3 kB / 3.097 GB, free: 120.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006861/5.049, allocations: 0.4953 MB / 3.097 GB, free: 119.9 MB / 1.167 GB Notification: Performance of SimCode: time 8.616e-06/5.049, allocations: 4 kB / 3.097 GB, free: 119.9 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05404/5.103, allocations: 27.1 MB / 3.124 GB, free: 93.12 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/5.103, allocations: 262.9 kB / 3.124 GB, free: 92.76 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.85/7.953, allocations: 3.938 kB / 3.124 GB, free: 92.76 MB / 1.167 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