Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.792/1.792, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0008881/0.0008881, allocations: 169.3 kB / 490.8 MB, free: 1.949 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.123/1.123, allocations: 221.3 MB / 0.7863 GB, free: 13.75 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.001057/0.001057, allocations: 99.91 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4495/0.4506, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.6293, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.536/3.165, allocations: 1.762 GB / 2.974 GB, free: 116.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/3.165, allocations: 107.9 kB / 2.974 GB, free: 116.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.1349/3.3, allocations: 66.73 MB / 3.039 GB, free: 49.58 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/3.3, allocations: 11.98 kB / 3.039 GB, free: 49.57 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/3.302, allocations: 309.8 kB / 3.039 GB, free: 49.27 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/3.303, allocations: 0.8418 MB / 3.04 GB, free: 48.38 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/3.303, allocations: 32 kB / 3.04 GB, free: 48.35 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/3.304, allocations: 68 kB / 3.04 GB, free: 48.28 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001744/3.305, allocations: 1.304 MB / 3.041 GB, free: 46.97 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/3.307, allocations: 1.143 MB / 3.043 GB, free: 45.74 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/3.307, allocations: 0 / 3.043 GB, free: 45.74 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-05/3.307, allocations: 4 kB / 3.043 GB, free: 45.74 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.707e-05/3.307, allocations: 61.98 kB / 3.043 GB, free: 45.68 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004646/3.312, allocations: 4.562 MB / 3.047 GB, free: 40.88 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/3.313, allocations: 0.9092 MB / 3.048 GB, free: 39.95 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004287/3.313, allocations: 392 kB / 3.048 GB, free: 39.56 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001656/3.313, allocations: 117.8 kB / 3.048 GB, free: 39.43 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005675/3.314, allocations: 0.5246 MB / 3.049 GB, free: 38.88 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 1.943e-06/3.314, allocations: 4 kB / 3.049 GB, free: 38.88 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002158/3.316, allocations: 1.355 MB / 3.05 GB, free: 37.51 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/3.316, allocations: 295.5 kB / 3.051 GB, free: 37.15 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007909/3.317, allocations: 0.7859 MB / 3.051 GB, free: 36.36 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/3.317, allocations: 25.7 kB / 3.051 GB, free: 36.33 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/3.317, allocations: 427.8 kB / 3.052 GB, free: 35.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/3.317, allocations: 299.4 kB / 3.052 GB, free: 35.61 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/3.317, allocations: 0 / 3.052 GB, free: 35.61 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.822e-05/3.317, allocations: 341.9 kB / 3.052 GB, free: 35.27 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003958/3.318, allocations: 317.9 kB / 3.053 GB, free: 34.96 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/3.318, allocations: 0.5039 MB / 3.053 GB, free: 34.39 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006312/3.319, allocations: 429.6 kB / 3.054 GB, free: 33.97 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/3.319, allocations: 4.109 kB / 3.054 GB, free: 33.96 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001753/3.321, allocations: 1.049 MB / 3.055 GB, free: 32.91 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000149/3.321, allocations: 1.148 MB / 3.056 GB, free: 31.67 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/3.321, allocations: 0 / 3.056 GB, free: 31.67 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/3.322, allocations: 112.7 kB / 3.056 GB, free: 31.56 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007971/3.322, allocations: 199.8 kB / 3.056 GB, free: 31.36 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004949/3.323, allocations: 0.6537 MB / 3.057 GB, free: 30.68 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006907/3.324, allocations: 87.36 kB / 3.057 GB, free: 30.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.405e-05/3.324, allocations: 40.05 kB / 3.057 GB, free: 30.56 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 4.638e-06/3.324, allocations: 4 kB / 3.057 GB, free: 30.55 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001173/3.325, allocations: 0.7974 MB / 3.058 GB, free: 29.75 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/3.325, allocations: 4.375 kB / 3.058 GB, free: 29.75 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/3.325, allocations: 12 kB / 3.058 GB, free: 29.73 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007839/3.326, allocations: 199.7 kB / 3.058 GB, free: 29.54 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/3.326, allocations: 11.98 kB / 3.058 GB, free: 29.53 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005932/3.326, allocations: 79.39 kB / 3.058 GB, free: 29.45 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.735e-05/3.326, allocations: 39.98 kB / 3.058 GB, free: 29.41 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.000152/3.326, allocations: 128.8 kB / 3.058 GB, free: 29.28 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/3.327, allocations: 106.7 kB / 3.058 GB, free: 29.17 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002486/3.329, allocations: 1.331 MB / 3.059 GB, free: 27.83 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/3.329, allocations: 8 kB / 3.059 GB, free: 27.82 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/3.329, allocations: 3.984 kB / 3.059 GB, free: 27.82 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/3.329, allocations: 11.98 kB / 3.059 GB, free: 27.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00317/3.332, allocations: 2.474 MB / 3.062 GB, free: 25.27 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/3.332, allocations: 8.188 kB / 3.062 GB, free: 25.26 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/3.333, allocations: 191.7 kB / 3.062 GB, free: 25.07 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007746/3.334, allocations: 192.6 kB / 3.062 GB, free: 24.88 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-05/3.334, allocations: 15.98 kB / 3.062 GB, free: 24.86 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/3.335, allocations: 1.689 MB / 3.064 GB, free: 23.05 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/3.335, allocations: 0 / 3.064 GB, free: 23.05 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001906/3.337, allocations: 1.398 MB / 3.065 GB, free: 21.57 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001924/3.339, allocations: 1.805 MB / 3.067 GB, free: 19.68 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/3.34, allocations: 359.3 kB / 3.067 GB, free: 19.31 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/3.34, allocations: 8 kB / 3.067 GB, free: 19.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000764/3.341, allocations: 71.92 kB / 3.067 GB, free: 19.23 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/3.341, allocations: 68.75 kB / 3.067 GB, free: 19.17 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.997e-05/3.341, allocations: 43.97 kB / 3.068 GB, free: 19.12 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006338/3.342, allocations: 0.6163 MB / 3.068 GB, free: 18.51 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002524/3.344, allocations: 0.5155 MB / 3.069 GB, free: 18 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.001003/3.345, allocations: 0.5549 MB / 3.069 GB, free: 17.56 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001764/3.347, allocations: 1.333 MB / 3.07 GB, free: 16.23 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/3.347, allocations: 8.188 kB / 3.07 GB, free: 16.22 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007418/3.348, allocations: 0.6004 MB / 3.071 GB, free: 15.61 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/3.349, allocations: 266.8 kB / 3.071 GB, free: 15.35 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002936/3.352, allocations: 1.815 MB / 3.073 GB, free: 13.48 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008306/3.353, allocations: 1.351 MB / 3.074 GB, free: 12.11 MB / 1.151 GB Notification: Performance of SimCode: time 8.82e-07/3.353, allocations: 0 / 3.074 GB, free: 12.11 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat