Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.236/2.236, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.001206/0.001206, allocations: 180.8 kB / 492.3 MB, free: 0.5859 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.62/1.62, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009481/0.0009486, allocations: 90.58 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.176e-05/3.178e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.276, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.647/4.923, allocations: 1.79 GB / 3.002 GB, free: 73.77 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/4.924, allocations: 107.9 kB / 3.002 GB, free: 73.66 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.RCha to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.XCha to false. Notification: Performance of FrontEnd - DAE generated: time 1.211/6.134, allocations: 170.5 MB / 3.169 GB, free: 360.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.074e-06/6.134, allocations: 0 / 3.169 GB, free: 360.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0004237/6.135, allocations: 85.12 kB / 3.169 GB, free: 360.5 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01059/6.145, allocations: 3.114 MB / 3.172 GB, free: 358.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/6.145, allocations: 10.88 kB / 3.172 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00228/6.148, allocations: 462.2 kB / 3.172 GB, free: 358 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005664/6.153, allocations: 0.833 MB / 3.173 GB, free: 357.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006182/6.16, allocations: 2.272 MB / 3.175 GB, free: 356.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/6.16, allocations: 242.7 kB / 3.175 GB, free: 356 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001323/6.161, allocations: 301.7 kB / 3.176 GB, free: 356 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009537/6.171, allocations: 4.37 MB / 3.18 GB, free: 352.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.48e-05/6.171, allocations: 4 kB / 3.18 GB, free: 352.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004502/6.171, allocations: 135.7 kB / 3.18 GB, free: 352.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/6.171, allocations: 174 kB / 3.18 GB, free: 352.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007504/6.179, allocations: 3.935 MB / 3.184 GB, free: 348.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02485/6.204, allocations: 19.91 MB / 3.204 GB, free: 326.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002437/6.206, allocations: 1.829 MB / 3.205 GB, free: 324.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/6.207, allocations: 0.9395 MB / 3.206 GB, free: 324 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000272/6.208, allocations: 129.9 kB / 3.206 GB, free: 323.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001597/6.209, allocations: 1.097 MB / 3.208 GB, free: 322.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=150): time 4.128e-06/6.209, allocations: 0 / 3.208 GB, free: 322.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=187): time 0.02859/6.238, allocations: 11.85 MB / 3.219 GB, free: 310.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/6.238, allocations: 0.5062 MB / 3.22 GB, free: 310.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003037/6.241, allocations: 2.05 MB / 3.222 GB, free: 308.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0004129/6.242, allocations: 57.7 kB / 3.222 GB, free: 308 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0013/6.243, allocations: 1.512 MB / 3.223 GB, free: 306.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006117/6.244, allocations: 0.627 MB / 3.224 GB, free: 305.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/6.244, allocations: 40 kB / 3.224 GB, free: 305.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001102/6.244, allocations: 393.8 kB / 3.224 GB, free: 305.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/6.245, allocations: 1.093 MB / 3.225 GB, free: 304.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/6.247, allocations: 1.623 MB / 3.227 GB, free: 302.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/6.248, allocations: 1.353 MB / 3.228 GB, free: 301.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/6.248, allocations: 4 kB / 3.228 GB, free: 301.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.009594/6.258, allocations: 4.559 MB / 3.233 GB, free: 296.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009243/6.259, allocations: 4.663 MB / 3.237 GB, free: 291.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/6.259, allocations: 12 kB / 3.237 GB, free: 291.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006356/6.265, allocations: 1.85 MB / 3.239 GB, free: 289.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/6.268, allocations: 479.2 kB / 3.239 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009521/6.277, allocations: 9.516 MB / 3.249 GB, free: 279.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/6.28, allocations: 199.7 kB / 3.249 GB, free: 279 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000279/6.28, allocations: 87.97 kB / 3.249 GB, free: 279 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/6.28, allocations: 4.781 kB / 3.249 GB, free: 279 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007298/6.288, allocations: 3.699 MB / 3.253 GB, free: 275.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/6.288, allocations: 19.97 kB / 3.253 GB, free: 275.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003912/6.292, allocations: 1.177 MB / 3.254 GB, free: 274 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/6.294, allocations: 483.2 kB / 3.254 GB, free: 273.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007571/6.301, allocations: 7.508 MB / 3.262 GB, free: 265.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002448/6.304, allocations: 171.7 kB / 3.262 GB, free: 265.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002208/6.304, allocations: 87.92 kB / 3.262 GB, free: 265.4 MB / 1.151 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic reactance of the cable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (236): * Single equations (assignments): 230 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006221/6.305, allocations: 233.4 kB / 3.262 GB, free: 265.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004475/6.305, allocations: 245.1 kB / 3.262 GB, free: 264.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009403/6.315, allocations: 4.343 MB / 3.266 GB, free: 260.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.546e-05/6.315, allocations: 20 kB / 3.267 GB, free: 260.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/6.315, allocations: 11.98 kB / 3.267 GB, free: 260.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.333e-05/6.315, allocations: 11.97 kB / 3.267 GB, free: 260.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/6.332, allocations: 9.435 MB / 3.276 GB, free: 251 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/6.332, allocations: 4 kB / 3.276 GB, free: 251 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/6.333, allocations: 364 kB / 3.276 GB, free: 250.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006131/6.339, allocations: 1.815 MB / 3.278 GB, free: 248.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003547/6.34, allocations: 47.98 kB / 3.278 GB, free: 248.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/6.352, allocations: 13.16 MB / 3.291 GB, free: 234.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/6.352, allocations: 4 kB / 3.291 GB, free: 234.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009271/6.361, allocations: 4.67 MB / 3.295 GB, free: 229.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/6.363, allocations: 0.7008 MB / 3.296 GB, free: 229.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005916/6.364, allocations: 44 kB / 3.296 GB, free: 229.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/6.366, allocations: 191.7 kB / 3.296 GB, free: 228.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/6.366, allocations: 157.6 kB / 3.296 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/6.366, allocations: 63.97 kB / 3.296 GB, free: 228.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002265/6.369, allocations: 1.589 MB / 3.298 GB, free: 227.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.2e-07/6.369, allocations: 4 kB / 3.298 GB, free: 227.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005466/6.374, allocations: 1.316 MB / 3.299 GB, free: 225.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (184): * Single equations (assignments): 176 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01148/6.386, allocations: 7.165 MB / 3.306 GB, free: 218.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.009264/6.395, allocations: 5.366 MB / 3.312 GB, free: 213.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/6.395, allocations: 8.125 kB / 3.312 GB, free: 213.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003434/6.398, allocations: 2.284 MB / 3.314 GB, free: 210.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/6.401, allocations: 0.5919 MB / 3.314 GB, free: 210.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/6.414, allocations: 6.306 MB / 3.321 GB, free: 203.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001998/6.416, allocations: 2.541 MB / 3.323 GB, free: 201.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003873/6.42, allocations: 1.392 MB / 3.324 GB, free: 199.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001593/6.422, allocations: 1.284 MB / 3.326 GB, free: 198.6 MB / 1.151 GB Notification: Performance of SimCode: time 9.21e-07/6.422, allocations: 0 / 3.326 GB, free: 198.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1038/6.526, allocations: 75.34 MB / 3.399 GB, free: 123.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/6.526, allocations: 254.8 kB / 3.399 GB, free: 123.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.233/10.76, allocations: 0 / 3.399 GB, free: 123.4 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat