Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_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.15/2.15, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001007/0.001007, allocations: 188.8 kB / 487.4 MB, free: 5.027 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.47/1.47, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008592/0.0008592, allocations: 98.78 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.813e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2327, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.71/3.943, allocations: 1.76 GB / 2.966 GB, free: 122.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/3.943, allocations: 99.94 kB / 2.966 GB, free: 122.3 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1646/4.108, allocations: 55.91 MB / 3.021 GB, free: 66.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.953e-06/4.108, allocations: 4 kB / 3.021 GB, free: 66.09 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000124/4.108, allocations: 31.94 kB / 3.021 GB, free: 66.06 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: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.00282/4.111, allocations: 1.333 MB / 3.022 GB, free: 64.67 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/4.111, allocations: 8.031 kB / 3.022 GB, free: 64.66 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002172/4.113, allocations: 286.6 kB / 3.022 GB, free: 64.38 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/4.115, allocations: 0.7989 MB / 3.023 GB, free: 63.54 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/4.115, allocations: 32 kB / 3.023 GB, free: 63.51 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/4.115, allocations: 56 kB / 3.023 GB, free: 63.46 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002484/4.118, allocations: 1.175 MB / 3.024 GB, free: 62.28 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002172/4.12, allocations: 0.9872 MB / 3.025 GB, free: 61.22 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.173e-05/4.12, allocations: 0 / 3.025 GB, free: 61.22 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/4.12, allocations: 0 / 3.025 GB, free: 61.22 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.112e-05/4.12, allocations: 53.98 kB / 3.025 GB, free: 61.16 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007371/4.127, allocations: 4.181 MB / 3.029 GB, free: 56.78 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/4.129, allocations: 0.7203 MB / 3.03 GB, free: 56.05 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006788/4.13, allocations: 299.1 kB / 3.03 GB, free: 55.75 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 9.692e-05/4.13, allocations: 36.81 kB / 3.03 GB, free: 55.72 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008218/4.131, allocations: 418.4 kB / 3.031 GB, free: 55.28 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 5.09e-06/4.131, allocations: 0 / 3.031 GB, free: 55.28 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001706/4.133, allocations: 0.6638 MB / 3.032 GB, free: 54.61 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.467e-05/4.133, allocations: 350.9 kB / 3.032 GB, free: 54.18 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/4.134, allocations: 0.774 MB / 3.033 GB, free: 53.41 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-05/4.134, allocations: 25.7 kB / 3.033 GB, free: 53.38 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004965/4.135, allocations: 0.5308 MB / 3.033 GB, free: 52.84 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002526/4.135, allocations: 260.2 kB / 3.033 GB, free: 52.58 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/4.135, allocations: 0 / 3.033 GB, free: 52.58 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.518e-05/4.135, allocations: 334 kB / 3.034 GB, free: 52.25 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/4.136, allocations: 205.5 kB / 3.034 GB, free: 52.05 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006236/4.136, allocations: 398.4 kB / 3.034 GB, free: 51.59 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006524/4.137, allocations: 284.4 kB / 3.035 GB, free: 51.32 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/4.137, allocations: 0 / 3.035 GB, free: 51.32 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001705/4.139, allocations: 0.7067 MB / 3.035 GB, free: 50.59 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002135/4.139, allocations: 0.9749 MB / 3.036 GB, free: 49.55 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/4.139, allocations: 0 / 3.036 GB, free: 49.55 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/4.139, allocations: 24.84 kB / 3.036 GB, free: 49.52 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/4.14, allocations: 171.7 kB / 3.036 GB, free: 49.35 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003419/4.141, allocations: 0.5445 MB / 3.037 GB, free: 48.78 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009921/4.142, allocations: 75.34 kB / 3.037 GB, free: 48.71 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.988e-05/4.142, allocations: 31.98 kB / 3.037 GB, free: 48.68 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/4.142, allocations: 4 kB / 3.037 GB, free: 48.67 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001361/4.143, allocations: 0.5727 MB / 3.038 GB, free: 48.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/4.143, allocations: 4 kB / 3.038 GB, free: 48.09 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/4.143, allocations: 11.95 kB / 3.038 GB, free: 48.08 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/4.144, allocations: 171.7 kB / 3.038 GB, free: 47.91 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/4.144, allocations: 11.98 kB / 3.038 GB, free: 47.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009559/4.145, allocations: 71.72 kB / 3.038 GB, free: 47.83 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-05/4.145, allocations: 31.98 kB / 3.038 GB, free: 47.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (94): * Single equations (assignments): 93 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002439/4.146, allocations: 126.8 kB / 3.038 GB, free: 47.67 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001522/4.147, allocations: 0.6677 MB / 3.039 GB, free: 47 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/4.147, allocations: 98.78 kB / 3.039 GB, free: 46.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002389/4.15, allocations: 0.8747 MB / 3.04 GB, free: 46.01 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/4.15, allocations: 8 kB / 3.04 GB, free: 46 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/4.15, allocations: 4 kB / 3.04 GB, free: 46 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/4.15, allocations: 3.984 kB / 3.04 GB, free: 45.99 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/4.154, allocations: 2.106 MB / 3.042 GB, free: 43.81 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/4.154, allocations: 0 / 3.042 GB, free: 43.81 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/4.155, allocations: 155.8 kB / 3.042 GB, free: 43.66 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/4.155, allocations: 28.83 kB / 3.042 GB, free: 43.63 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/4.155, allocations: 15.98 kB / 3.042 GB, free: 43.61 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008246/4.156, allocations: 1.233 MB / 3.043 GB, free: 42.27 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/4.156, allocations: 0 / 3.043 GB, free: 42.27 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/4.157, allocations: 0.9014 MB / 3.044 GB, free: 41.31 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005252/4.158, allocations: 323.4 kB / 3.044 GB, free: 40.97 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/4.158, allocations: 4 kB / 3.044 GB, free: 40.97 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008682/4.159, allocations: 59.94 kB / 3.044 GB, free: 40.91 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/4.159, allocations: 68.64 kB / 3.044 GB, free: 40.84 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.957e-05/4.159, allocations: 31.98 kB / 3.044 GB, free: 40.81 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0009266/4.16, allocations: 0.5967 MB / 3.045 GB, free: 40.22 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.2e-07/4.16, allocations: 4 kB / 3.045 GB, free: 40.21 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002016/4.162, allocations: 0.5292 MB / 3.046 GB, free: 39.68 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003299/4.165, allocations: 2.216 MB / 3.048 GB, free: 37.53 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002059/4.167, allocations: 0.9506 MB / 3.049 GB, free: 36.58 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/4.167, allocations: 448 / 3.049 GB, free: 36.58 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007669/4.168, allocations: 444.6 kB / 3.049 GB, free: 36.14 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/4.17, allocations: 277 kB / 3.049 GB, free: 35.88 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004617/4.175, allocations: 1.792 MB / 3.051 GB, free: 34.03 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007721/4.176, allocations: 1.17 MB / 3.052 GB, free: 32.83 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002642/4.178, allocations: 0.5577 MB / 3.053 GB, free: 32.27 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007187/4.179, allocations: 447.3 kB / 3.053 GB, free: 31.83 MB / 1.151 GB Notification: Performance of SimCode: time 7.21e-07/4.179, allocations: 7.938 kB / 3.053 GB, free: 31.82 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0673/4.246, allocations: 23.7 MB / 3.076 GB, free: 8.273 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002618/4.247, allocations: 175.7 kB / 3.076 GB, free: 8.082 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/6.929, allocations: 3.938 kB / 3.077 GB, free: 8.078 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat