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"}) [: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 9.1.1-maint.9.1.x/package.mo): time 1.822/1.822, allocations: 387.2 MB / 394.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009509/0.0009508, allocations: 182.3 kB / 487 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 221.3 MB / 0.7819 GB, free: 6.742 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008384/0.0008385, allocations: 89.42 kB / 0.9213 GB, free: 43.61 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2342/0.2351, allocations: 148.5 MB / 1.066 GB, free: 7.398 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5226/0.7576, allocations: 142.3 MB / 1.205 GB, free: 72.8 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.625/3.383, allocations: 1.761 GB / 2.967 GB, free: 324.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/3.383, allocations: 107.9 kB / 2.967 GB, free: 324.7 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.1406/3.524, allocations: 66.73 MB / 3.032 GB, free: 257.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/3.524, allocations: 11.98 kB / 3.032 GB, free: 257.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/3.526, allocations: 309.8 kB / 3.032 GB, free: 257.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/3.527, allocations: 0.8378 MB / 3.033 GB, free: 256.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/3.527, allocations: 32 kB / 3.033 GB, free: 256.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/3.527, allocations: 68 kB / 3.033 GB, free: 256.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00172/3.529, allocations: 1.312 MB / 3.034 GB, free: 255.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/3.53, allocations: 1.141 MB / 3.035 GB, free: 254 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/3.53, allocations: 3.984 kB / 3.035 GB, free: 254 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.395e-05/3.531, allocations: 4 kB / 3.035 GB, free: 254 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-05/3.531, allocations: 57.98 kB / 3.035 GB, free: 253.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004831/3.535, allocations: 4.558 MB / 3.04 GB, free: 249.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/3.537, allocations: 0.9032 MB / 3.041 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004385/3.537, allocations: 396 kB / 3.041 GB, free: 247.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001775/3.537, allocations: 117.9 kB / 3.041 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005894/3.538, allocations: 0.5246 MB / 3.042 GB, free: 247.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.825e-06/3.538, allocations: 0 / 3.042 GB, free: 247.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002378/3.54, allocations: 1.359 MB / 3.043 GB, free: 245.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/3.54, allocations: 295.5 kB / 3.043 GB, free: 245.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008666/3.541, allocations: 0.7898 MB / 3.044 GB, free: 244.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/3.541, allocations: 25.7 kB / 3.044 GB, free: 244.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000203/3.541, allocations: 419.7 kB / 3.045 GB, free: 244.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000172/3.542, allocations: 307.5 kB / 3.045 GB, free: 243.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/3.542, allocations: 0 / 3.045 GB, free: 243.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.561e-05/3.542, allocations: 337.9 kB / 3.045 GB, free: 243.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003997/3.542, allocations: 317.9 kB / 3.046 GB, free: 243.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004743/3.543, allocations: 0.5078 MB / 3.046 GB, free: 242.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/3.543, allocations: 426 kB / 3.046 GB, free: 242.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/3.543, allocations: 4 kB / 3.046 GB, free: 242.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001796/3.545, allocations: 1.049 MB / 3.047 GB, free: 241.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001609/3.545, allocations: 1.152 MB / 3.049 GB, free: 239.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/3.545, allocations: 3.984 kB / 3.049 GB, free: 239.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006196/3.546, allocations: 104.8 kB / 3.049 GB, free: 239.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008054/3.547, allocations: 207.7 kB / 3.049 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005171/3.547, allocations: 0.6499 MB / 3.049 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007467/3.548, allocations: 95.36 kB / 3.05 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/3.548, allocations: 35.98 kB / 3.05 GB, free: 238.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.063e-06/3.548, allocations: 4 kB / 3.05 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001164/3.549, allocations: 0.8013 MB / 3.05 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/3.549, allocations: 4 kB / 3.05 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.274e-06/3.549, allocations: 8 kB / 3.05 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/3.55, allocations: 204.1 kB / 3.051 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/3.55, allocations: 11.98 kB / 3.051 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/3.551, allocations: 79.39 kB / 3.051 GB, free: 237.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.657e-05/3.551, allocations: 39.98 kB / 3.051 GB, free: 237.6 MB / 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.0001717/3.551, allocations: 120.8 kB / 3.051 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/3.551, allocations: 110.7 kB / 3.051 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002508/3.554, allocations: 1.331 MB / 3.052 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/3.554, allocations: 8 kB / 3.052 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/3.554, allocations: 3.984 kB / 3.052 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/3.554, allocations: 7.984 kB / 3.052 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/3.557, allocations: 2.483 MB / 3.055 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/3.557, allocations: 4 kB / 3.055 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007274/3.558, allocations: 195.9 kB / 3.055 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007627/3.559, allocations: 188.7 kB / 3.055 GB, free: 233.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.367e-05/3.559, allocations: 15.98 kB / 3.055 GB, free: 233.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/3.56, allocations: 1.685 MB / 3.057 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/3.56, allocations: 0 / 3.057 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001887/3.562, allocations: 1.398 MB / 3.058 GB, free: 229.8 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002008/3.564, allocations: 1.799 MB / 3.06 GB, free: 228 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004646/3.565, allocations: 367.3 kB / 3.06 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/3.565, allocations: 4 kB / 3.06 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008028/3.566, allocations: 75.86 kB / 3.06 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/3.566, allocations: 68.81 kB / 3.06 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-05/3.566, allocations: 35.97 kB / 3.06 GB, free: 227.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006611/3.566, allocations: 0.6279 MB / 3.061 GB, free: 226.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002742/3.569, allocations: 0.5193 MB / 3.062 GB, free: 226.3 MB / 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.001084/3.57, allocations: 0.558 MB / 3.062 GB, free: 225.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001849/3.572, allocations: 1.336 MB / 3.063 GB, free: 224.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/3.572, allocations: 4 kB / 3.063 GB, free: 224.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000751/3.573, allocations: 0.5994 MB / 3.064 GB, free: 223.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/3.574, allocations: 265.5 kB / 3.064 GB, free: 223.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/3.577, allocations: 1.819 MB / 3.066 GB, free: 221.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000899/3.578, allocations: 1.349 MB / 3.067 GB, free: 220.4 MB / 1.151 GB Notification: Performance of SimCode: time 3e-07/3.578, allocations: 0 / 3.067 GB, free: 220.4 MB / 1.151 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