Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.79/1.79, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0009618/0.0009618, allocations: 173.3 kB / 490.8 MB, free: 1.969 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.12/1.12, allocations: 221.3 MB / 0.7863 GB, free: 13.67 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.0008229/0.000823, allocations: 103.5 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4148/0.4156, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.5924, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.498/3.091, allocations: 1.761 GB / 2.972 GB, free: 91.88 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/3.091, allocations: 94.45 kB / 2.972 GB, free: 91.83 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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: 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.1166/3.208, allocations: 58.34 MB / 3.029 GB, free: 37.91 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/3.208, allocations: 8 kB / 3.029 GB, free: 37.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/3.209, allocations: 293.9 kB / 3.03 GB, free: 37.61 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/3.21, allocations: 0.8067 MB / 3.031 GB, free: 36.77 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/3.21, allocations: 32 kB / 3.031 GB, free: 36.73 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.928e-05/3.21, allocations: 56 kB / 3.031 GB, free: 36.68 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001395/3.212, allocations: 1.187 MB / 3.032 GB, free: 35.49 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/3.213, allocations: 0.9902 MB / 3.033 GB, free: 34.43 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/3.213, allocations: 0 / 3.033 GB, free: 34.43 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/3.213, allocations: 11.84 kB / 3.033 GB, free: 34.42 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.026e-05/3.213, allocations: 49.98 kB / 3.033 GB, free: 34.37 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004277/3.217, allocations: 4.22 MB / 3.037 GB, free: 29.94 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008634/3.218, allocations: 0.708 MB / 3.038 GB, free: 29.22 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004052/3.218, allocations: 302.7 kB / 3.038 GB, free: 28.93 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 6.519e-05/3.219, allocations: 32.69 kB / 3.038 GB, free: 28.89 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004463/3.219, allocations: 412.6 kB / 3.038 GB, free: 28.46 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 2.114e-06/3.219, allocations: 0 / 3.038 GB, free: 28.46 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001016/3.22, allocations: 0.6519 MB / 3.039 GB, free: 27.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/3.22, allocations: 350.8 kB / 3.039 GB, free: 27.38 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007566/3.221, allocations: 0.7741 MB / 3.04 GB, free: 26.59 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/3.221, allocations: 25.7 kB / 3.04 GB, free: 26.56 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/3.221, allocations: 403.5 kB / 3.04 GB, free: 26.16 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/3.221, allocations: 264.1 kB / 3.041 GB, free: 25.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/3.221, allocations: 0 / 3.041 GB, free: 25.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.699e-05/3.221, allocations: 334 kB / 3.041 GB, free: 25.57 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/3.222, allocations: 217.5 kB / 3.041 GB, free: 25.36 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003617/3.222, allocations: 398.4 kB / 3.042 GB, free: 24.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/3.222, allocations: 289.7 kB / 3.042 GB, free: 24.62 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/3.222, allocations: 0 / 3.042 GB, free: 24.62 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0009999/3.223, allocations: 0.7092 MB / 3.043 GB, free: 23.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/3.223, allocations: 0.9709 MB / 3.044 GB, free: 22.85 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/3.223, allocations: 4 kB / 3.044 GB, free: 22.85 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001439/3.224, allocations: 20.84 kB / 3.044 GB, free: 22.82 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006409/3.224, allocations: 171.8 kB / 3.044 GB, free: 22.66 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002372/3.225, allocations: 0.5484 MB / 3.044 GB, free: 22.08 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005977/3.225, allocations: 87.33 kB / 3.044 GB, free: 22 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.82e-05/3.225, allocations: 35.97 kB / 3.044 GB, free: 21.96 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.139e-06/3.225, allocations: 4 kB / 3.044 GB, free: 21.96 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008041/3.226, allocations: 0.5752 MB / 3.045 GB, free: 21.38 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-06/3.226, allocations: 4.062 kB / 3.045 GB, free: 21.38 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.793e-06/3.226, allocations: 8 kB / 3.045 GB, free: 21.37 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006294/3.227, allocations: 179.7 kB / 3.045 GB, free: 21.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/3.227, allocations: 4 kB / 3.045 GB, free: 21.19 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/3.227, allocations: 75.41 kB / 3.045 GB, free: 21.12 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/3.227, allocations: 31.98 kB / 3.045 GB, free: 21.09 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.0001316/3.227, allocations: 131.7 kB / 3.045 GB, free: 20.95 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/3.228, allocations: 106.8 kB / 3.045 GB, free: 20.85 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/3.229, allocations: 0.8887 MB / 3.046 GB, free: 19.95 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/3.229, allocations: 8 kB / 3.046 GB, free: 19.94 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/3.229, allocations: 7.938 kB / 3.046 GB, free: 19.93 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/3.229, allocations: 7.984 kB / 3.046 GB, free: 19.92 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/3.231, allocations: 2.101 MB / 3.048 GB, free: 17.75 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/3.231, allocations: 0 / 3.048 GB, free: 17.75 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005755/3.232, allocations: 163.8 kB / 3.049 GB, free: 17.59 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.013e-05/3.232, allocations: 28.84 kB / 3.049 GB, free: 17.55 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.783e-05/3.232, allocations: 15.98 kB / 3.049 GB, free: 17.54 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005585/3.233, allocations: 1.217 MB / 3.05 GB, free: 16.21 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/3.233, allocations: 3.938 kB / 3.05 GB, free: 16.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000935/3.234, allocations: 0.8958 MB / 3.051 GB, free: 15.25 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001005/3.235, allocations: 1.306 MB / 3.052 GB, free: 13.88 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/3.235, allocations: 323.4 kB / 3.052 GB, free: 13.55 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/3.235, allocations: 7.984 kB / 3.052 GB, free: 13.54 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005865/3.236, allocations: 55.95 kB / 3.052 GB, free: 13.48 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/3.236, allocations: 60.69 kB / 3.052 GB, free: 13.43 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.856e-05/3.236, allocations: 35.98 kB / 3.052 GB, free: 13.39 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0005507/3.236, allocations: 0.6006 MB / 3.053 GB, free: 12.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002236/3.239, allocations: 0.5838 MB / 3.054 GB, free: 12.21 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.0009214/3.24, allocations: 0.5502 MB / 3.054 GB, free: 11.77 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001178/3.241, allocations: 0.9623 MB / 3.055 GB, free: 10.81 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/3.241, allocations: 0.5 kB / 3.055 GB, free: 10.81 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004543/3.241, allocations: 456.6 kB / 3.055 GB, free: 10.36 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009986/3.242, allocations: 257.4 kB / 3.056 GB, free: 10.11 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/3.245, allocations: 1.584 MB / 3.057 GB, free: 8.484 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007172/3.245, allocations: 1.291 MB / 3.059 GB, free: 7.156 MB / 1.151 GB Notification: Performance of SimCode: time 3.21e-07/3.245, allocations: 0 / 3.059 GB, free: 7.156 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat