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: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") [: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.664/1.664, allocations: 390.4 MB / 397.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009597/0.0009597, allocations: 180.4 kB / 490.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.04/1.04, allocations: 221.4 MB / 0.7863 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007953/0.0007953, allocations: 92.22 kB / 0.9264 GB, free: 64.6 MB / 0.67 GB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.26e-06, allocations: 0 / 1.072 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2009, allocations: 143 MB / 1.212 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.616/2.817, allocations: 1.762 GB / 2.974 GB, free: 354.5 MB / 1.154 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/2.818, allocations: 101.3 kB / 2.974 GB, free: 354.5 MB / 1.154 GB Notification: Performance of FrontEnd: time 0.1325/2.95, allocations: 65.24 MB / 3.037 GB, free: 343.1 MB / 1.154 GB Notification: Performance of Transformations before backend: time 6.841e-05/2.95, allocations: 35.27 kB / 3.037 GB, free: 343.1 MB / 1.154 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.001912/2.952, allocations: 1.446 MB / 3.039 GB, free: 342 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 2.726e-05/2.952, allocations: 15.72 kB / 3.039 GB, free: 342 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001343/2.953, allocations: 304.4 kB / 3.039 GB, free: 341.9 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/2.955, allocations: 0.8329 MB / 3.04 GB, free: 341.4 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/2.955, allocations: 39.03 kB / 3.04 GB, free: 341.4 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/2.955, allocations: 66.61 kB / 3.04 GB, free: 341.4 MB / 1.154 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001498/2.956, allocations: 1.298 MB / 3.041 GB, free: 341.2 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/2.958, allocations: 1.136 MB / 3.042 GB, free: 340.7 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/2.958, allocations: 7.844 kB / 3.042 GB, free: 340.7 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.558e-05/2.958, allocations: 0 / 3.042 GB, free: 340.7 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.17e-05/2.958, allocations: 64.23 kB / 3.042 GB, free: 340.7 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/2.962, allocations: 4.558 MB / 3.047 GB, free: 337.7 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009832/2.963, allocations: 0.9009 MB / 3.048 GB, free: 337.6 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/2.963, allocations: 387.8 kB / 3.048 GB, free: 337.5 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001541/2.964, allocations: 129.8 kB / 3.048 GB, free: 337.4 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005869/2.964, allocations: 0.5267 MB / 3.049 GB, free: 337.2 MB / 1.154 GB Notification: Performance of pre-optimization done (n=94): time 1.814e-06/2.964, allocations: 0 / 3.049 GB, free: 337.2 MB / 1.154 GB Notification: Performance of matching and sorting (n=95): time 0.002/2.966, allocations: 1.353 MB / 3.05 GB, free: 336.7 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/2.966, allocations: 298.4 kB / 3.05 GB, free: 336.3 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007346/2.967, allocations: 0.7855 MB / 3.051 GB, free: 336.1 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/2.967, allocations: 25.7 kB / 3.051 GB, free: 336.1 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/2.967, allocations: 420.2 kB / 3.052 GB, free: 335.8 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/2.967, allocations: 303.5 kB / 3.052 GB, free: 335.6 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/2.967, allocations: 0 / 3.052 GB, free: 335.6 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 5.063e-05/2.967, allocations: 344.2 kB / 3.052 GB, free: 335.3 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/2.968, allocations: 319.9 kB / 3.053 GB, free: 335.2 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/2.968, allocations: 0.5008 MB / 3.053 GB, free: 335 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005775/2.969, allocations: 429.8 kB / 3.053 GB, free: 334.9 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/2.969, allocations: 112 / 3.053 GB, free: 334.9 MB / 1.154 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001638/2.97, allocations: 1.054 MB / 3.054 GB, free: 334.7 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/2.971, allocations: 1.151 MB / 3.056 GB, free: 333.5 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/2.971, allocations: 0 / 3.056 GB, free: 333.5 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005701/2.971, allocations: 107.4 kB / 3.056 GB, free: 333.4 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007453/2.972, allocations: 207.7 kB / 3.056 GB, free: 333.4 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004403/2.972, allocations: 0.6514 MB / 3.057 GB, free: 332.8 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006445/2.973, allocations: 90.39 kB / 3.057 GB, free: 332.8 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.831e-05/2.973, allocations: 41.02 kB / 3.057 GB, free: 332.8 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 4.509e-06/2.973, allocations: 3.906 kB / 3.057 GB, free: 332.8 MB / 1.154 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001092/2.974, allocations: 0.8001 MB / 3.057 GB, free: 332.7 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/2.974, allocations: 0 / 3.057 GB, free: 332.7 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.332e-06/2.974, allocations: 7.812 kB / 3.057 GB, free: 332.7 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/2.975, allocations: 206.4 kB / 3.058 GB, free: 332.6 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/2.975, allocations: 11.81 kB / 3.058 GB, free: 332.6 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005684/2.976, allocations: 75.7 kB / 3.058 GB, free: 332.6 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.269e-05/2.976, allocations: 44.59 kB / 3.058 GB, free: 332.6 MB / 1.154 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.0001416/2.976, allocations: 124.7 kB / 3.058 GB, free: 332.4 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/2.976, allocations: 105.5 kB / 3.058 GB, free: 332.4 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/2.978, allocations: 1.33 MB / 3.059 GB, free: 332 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/2.978, allocations: 11.75 kB / 3.059 GB, free: 332 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/2.978, allocations: 0 / 3.059 GB, free: 332 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/2.978, allocations: 7.969 kB / 3.059 GB, free: 332 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/2.981, allocations: 2.493 MB / 3.062 GB, free: 331.1 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/2.981, allocations: 0 / 3.062 GB, free: 331.1 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000706/2.982, allocations: 190.6 kB / 3.062 GB, free: 331.1 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007057/2.983, allocations: 189.9 kB / 3.062 GB, free: 331 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/2.983, allocations: 18.3 kB / 3.062 GB, free: 331 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/2.984, allocations: 1.688 MB / 3.064 GB, free: 329.6 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/2.984, allocations: 7.844 kB / 3.064 GB, free: 329.6 MB / 1.154 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001703/2.986, allocations: 1.389 MB / 3.065 GB, free: 329 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003746/2.986, allocations: 360.8 kB / 3.065 GB, free: 328.8 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/2.986, allocations: 3.969 kB / 3.065 GB, free: 328.8 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007305/2.987, allocations: 74.92 kB / 3.066 GB, free: 328.8 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/2.987, allocations: 65.12 kB / 3.066 GB, free: 328.8 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/2.987, allocations: 42.03 kB / 3.066 GB, free: 328.7 MB / 1.154 GB Notification: Performance of sort global known variables: time 0.0005262/2.988, allocations: 0.6188 MB / 3.066 GB, free: 328.6 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.001095/2.989, allocations: 481.8 kB / 3.067 GB, free: 328.5 MB / 1.154 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.0008866/2.99, allocations: 0.5621 MB / 3.067 GB, free: 328.3 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.00155/2.991, allocations: 1.333 MB / 3.069 GB, free: 328.2 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/2.991, allocations: 5.406 kB / 3.069 GB, free: 328.2 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0006743/2.992, allocations: 0.6028 MB / 3.069 GB, free: 328 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/2.993, allocations: 268 kB / 3.069 GB, free: 327.9 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/2.996, allocations: 1.815 MB / 3.071 GB, free: 327.3 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007815/2.997, allocations: 1.34 MB / 3.073 GB, free: 326.3 MB / 1.154 GB Notification: Performance of SimCode: time 2.7e-07/2.997, allocations: 7.938 kB / 3.073 GB, free: 326.3 MB / 1.154 GB Notification: Performance of Templates: time 0.02827/3.025, allocations: 22.86 MB / 3.095 GB, free: 315.2 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches