Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_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.8/1.8, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0009374/0.0009374, allocations: 188 kB / 490.8 MB, free: 1.902 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.124/1.124, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008625/0.0008625, allocations: 95.55 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4229/0.4238, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.5989, allocations: 143 MB / 1.212 GB, free: 39.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.562/3.161, allocations: 1.766 GB / 2.978 GB, free: 80.88 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/3.161, allocations: 101.9 kB / 2.978 GB, free: 80.82 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.142/3.303, allocations: 70.67 MB / 3.047 GB, free: 13.77 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/3.303, allocations: 8 kB / 3.047 GB, free: 13.76 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/3.304, allocations: 313.8 kB / 3.047 GB, free: 13.45 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/3.306, allocations: 0.834 MB / 3.048 GB, free: 12.57 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/3.306, allocations: 36 kB / 3.048 GB, free: 12.54 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/3.306, allocations: 60 kB / 3.048 GB, free: 12.48 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001612/3.308, allocations: 1.304 MB / 3.049 GB, free: 11.17 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/3.309, allocations: 1.143 MB / 3.05 GB, free: 9.941 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/3.309, allocations: 4 kB / 3.05 GB, free: 9.938 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.564e-05/3.309, allocations: 3.984 kB / 3.05 GB, free: 9.934 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.517e-05/3.309, allocations: 61.97 kB / 3.05 GB, free: 9.875 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004517/3.314, allocations: 4.562 MB / 3.055 GB, free: 5.078 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/3.315, allocations: 0.9026 MB / 3.056 GB, free: 4.156 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/3.315, allocations: 392 kB / 3.056 GB, free: 3.77 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001662/3.315, allocations: 125.9 kB / 3.056 GB, free: 3.625 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005735/3.316, allocations: 0.5246 MB / 3.057 GB, free: 3.078 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.415e-06/3.316, allocations: 0 / 3.057 GB, free: 3.078 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002298/3.318, allocations: 1.359 MB / 3.058 GB, free: 1.703 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/3.318, allocations: 303.5 kB / 3.058 GB, free: 1.34 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000845/3.319, allocations: 0.7859 MB / 3.059 GB, free: 0.5508 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.908e-05/3.319, allocations: 25.7 kB / 3.059 GB, free: 0.5195 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/3.319, allocations: 419.7 kB / 3.06 GB, free: 104 kB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.2929/3.612, allocations: 296.8 kB / 3.06 GB, free: 0.5127 GB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.053e-05/3.613, allocations: 0 / 3.06 GB, free: 0.5127 GB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.339e-05/3.613, allocations: 345.5 kB / 3.06 GB, free: 0.5124 GB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/3.613, allocations: 319 kB / 3.061 GB, free: 0.5124 GB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005263/3.614, allocations: 0.5061 MB / 3.061 GB, free: 0.5122 GB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007218/3.614, allocations: 438.7 kB / 3.061 GB, free: 0.5122 GB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/3.614, allocations: 0 / 3.061 GB, free: 0.5122 GB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001937/3.616, allocations: 1.044 MB / 3.062 GB, free: 0.5121 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001689/3.616, allocations: 1.137 MB / 3.064 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/3.616, allocations: 7.875 kB / 3.064 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006183/3.617, allocations: 110.8 kB / 3.064 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007993/3.618, allocations: 199.8 kB / 3.064 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005278/3.618, allocations: 0.6631 MB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007765/3.619, allocations: 81.98 kB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.669e-05/3.619, allocations: 40.28 kB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.079e-06/3.619, allocations: 3.781 kB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001175/3.621, allocations: 0.7968 MB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/3.621, allocations: 3.938 kB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.474e-06/3.621, allocations: 9.875 kB / 3.065 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007735/3.621, allocations: 211.5 kB / 3.066 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/3.621, allocations: 8.406 kB / 3.066 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005945/3.622, allocations: 76.91 kB / 3.066 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.77e-05/3.622, allocations: 40.31 kB / 3.066 GB, free: 0.5105 GB / 1.151 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.0001685/3.622, allocations: 130 kB / 3.066 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/3.622, allocations: 103.1 kB / 3.066 GB, free: 0.5103 GB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/3.625, allocations: 1.329 MB / 3.067 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/3.625, allocations: 7.812 kB / 3.067 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/3.625, allocations: 3.719 kB / 3.067 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/3.625, allocations: 7.719 kB / 3.067 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003214/3.628, allocations: 2.485 MB / 3.07 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/3.628, allocations: 2.062 kB / 3.07 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007254/3.629, allocations: 190.9 kB / 3.07 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007381/3.63, allocations: 193.5 kB / 3.07 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/3.63, allocations: 14.11 kB / 3.07 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/3.631, allocations: 1.681 MB / 3.072 GB, free: 0.5086 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/3.631, allocations: 5.188 kB / 3.072 GB, free: 0.5086 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00186/3.633, allocations: 1.396 MB / 3.073 GB, free: 0.5082 GB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00189/3.635, allocations: 1.81 MB / 3.075 GB, free: 0.5074 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004153/3.635, allocations: 355.1 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/3.636, allocations: 7.844 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007617/3.636, allocations: 74.83 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/3.636, allocations: 67.81 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.007e-05/3.636, allocations: 32.67 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.00061/3.637, allocations: 0.6202 MB / 3.076 GB, free: 0.5071 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.002402/3.639, allocations: 0.5209 MB / 3.077 GB, free: 0.5071 GB / 1.151 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.00097/3.64, allocations: 0.5708 MB / 3.077 GB, free: 0.507 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001693/3.642, allocations: 1.339 MB / 3.078 GB, free: 0.507 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/3.642, allocations: 3.906 kB / 3.078 GB, free: 0.507 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007116/3.643, allocations: 0.6013 MB / 3.079 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/3.644, allocations: 259.3 kB / 3.079 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/3.647, allocations: 1.817 MB / 3.081 GB, free: 0.5064 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008488/3.648, allocations: 1.352 MB / 3.082 GB, free: 0.5057 GB / 1.151 GB Notification: Performance of SimCode: time 3.11e-07/3.648, allocations: 0 / 3.082 GB, free: 0.5057 GB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat