Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 181.3 kB / 316 MB, free: 3.516 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 0.5667 GB, free: 15.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009259/0.000926, allocations: 78.3 kB / 0.671 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.827e-06/8.867e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2001, allocations: 106.3 MB / 0.8846 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.913/4.113, allocations: 2.221 GB / 3.106 GB, free: 181.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/4.113, allocations: 111 kB / 3.106 GB, free: 181.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.1319/4.245, allocations: 58.28 MB / 3.163 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.732e-05/4.246, allocations: 36 kB / 3.163 GB, free: 122.7 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.002438/4.248, allocations: 1.4 MB / 3.164 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/4.248, allocations: 8.031 kB / 3.164 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/4.25, allocations: 309.8 kB / 3.164 GB, free: 120.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/4.251, allocations: 0.834 MB / 3.165 GB, free: 120 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/4.251, allocations: 35.98 kB / 3.165 GB, free: 120 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/4.251, allocations: 63.91 kB / 3.165 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001698/4.253, allocations: 1.3 MB / 3.166 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/4.254, allocations: 1.133 MB / 3.168 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/4.254, allocations: 8 kB / 3.168 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-05/4.254, allocations: 0 / 3.168 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.478e-05/4.254, allocations: 61.97 kB / 3.168 GB, free: 117.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005103/4.26, allocations: 4.534 MB / 3.172 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/4.261, allocations: 0.8988 MB / 3.173 GB, free: 111.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/4.261, allocations: 395.9 kB / 3.173 GB, free: 111.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002123/4.261, allocations: 117.8 kB / 3.173 GB, free: 111.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006276/4.262, allocations: 0.5286 MB / 3.174 GB, free: 110.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=94): time 2.705e-06/4.262, allocations: 0 / 3.174 GB, free: 110.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.002487/4.265, allocations: 1.347 MB / 3.175 GB, free: 109.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/4.265, allocations: 295.5 kB / 3.176 GB, free: 108.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009392/4.266, allocations: 0.7858 MB / 3.176 GB, free: 108.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/4.266, allocations: 29.8 kB / 3.176 GB, free: 108 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/4.266, allocations: 411.8 kB / 3.177 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/4.266, allocations: 307.4 kB / 3.177 GB, free: 107.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/4.266, allocations: 0 / 3.177 GB, free: 107.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.308e-05/4.266, allocations: 337.9 kB / 3.177 GB, free: 107 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/4.267, allocations: 321.9 kB / 3.178 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/4.267, allocations: 0.4962 MB / 3.178 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006611/4.268, allocations: 438 kB / 3.179 GB, free: 105.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/4.268, allocations: 4 kB / 3.179 GB, free: 105.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001782/4.27, allocations: 1.06 MB / 3.18 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001902/4.27, allocations: 1.129 MB / 3.181 GB, free: 103.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/4.27, allocations: 4 kB / 3.181 GB, free: 103.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006451/4.271, allocations: 112.7 kB / 3.181 GB, free: 103.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/4.271, allocations: 199.7 kB / 3.181 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005318/4.272, allocations: 0.6576 MB / 3.182 GB, free: 102.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007481/4.273, allocations: 83.5 kB / 3.182 GB, free: 102.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.127e-05/4.273, allocations: 39.97 kB / 3.182 GB, free: 102.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/4.273, allocations: 4 kB / 3.182 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001179/4.274, allocations: 0.7939 MB / 3.183 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/4.274, allocations: 4.062 kB / 3.183 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/4.274, allocations: 8 kB / 3.183 GB, free: 101.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008008/4.275, allocations: 203.7 kB / 3.183 GB, free: 101.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/4.275, allocations: 11.94 kB / 3.183 GB, free: 101.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006362/4.275, allocations: 83.39 kB / 3.183 GB, free: 101.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/4.276, allocations: 31.98 kB / 3.183 GB, free: 101.1 MB / 0.8698 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.0001914/4.276, allocations: 132.8 kB / 3.183 GB, free: 101 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/4.276, allocations: 110.6 kB / 3.183 GB, free: 100.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002645/4.279, allocations: 1.324 MB / 3.184 GB, free: 99.54 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/4.279, allocations: 15.94 kB / 3.184 GB, free: 99.53 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/4.279, allocations: 4 kB / 3.184 GB, free: 99.52 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/4.279, allocations: 3.984 kB / 3.184 GB, free: 99.52 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003541/4.282, allocations: 2.498 MB / 3.187 GB, free: 96.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/4.282, allocations: 4 kB / 3.187 GB, free: 96.95 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/4.283, allocations: 179.8 kB / 3.187 GB, free: 96.78 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007973/4.284, allocations: 192.7 kB / 3.187 GB, free: 96.59 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/4.284, allocations: 19.89 kB / 3.187 GB, free: 96.57 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/4.285, allocations: 1.681 MB / 3.189 GB, free: 94.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/4.285, allocations: 4 kB / 3.189 GB, free: 94.77 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002065/4.288, allocations: 1.398 MB / 3.19 GB, free: 93.28 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000504/4.288, allocations: 351.3 kB / 3.191 GB, free: 92.92 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/4.288, allocations: 4 kB / 3.191 GB, free: 92.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007992/4.289, allocations: 71.92 kB / 3.191 GB, free: 92.84 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/4.289, allocations: 68.89 kB / 3.191 GB, free: 92.78 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-05/4.289, allocations: 35.98 kB / 3.191 GB, free: 92.74 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007257/4.29, allocations: 0.6202 MB / 3.191 GB, free: 92.12 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001602/4.292, allocations: 455.7 kB / 3.192 GB, free: 91.68 MB / 0.8698 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.001116/4.293, allocations: 496.4 kB / 3.192 GB, free: 91.28 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002197/4.295, allocations: 1.337 MB / 3.194 GB, free: 89.94 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/4.295, allocations: 0 / 3.194 GB, free: 89.94 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007908/4.296, allocations: 0.608 MB / 3.194 GB, free: 89.32 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/4.297, allocations: 263.3 kB / 3.194 GB, free: 89.07 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/4.301, allocations: 1.811 MB / 3.196 GB, free: 87.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009638/4.302, allocations: 1.335 MB / 3.198 GB, free: 85.84 MB / 0.8698 GB Notification: Performance of SimCode: time 6.91e-07/4.302, allocations: 0 / 3.198 GB, free: 85.84 MB / 0.8698 GB Notification: Performance of Templates: time 0.03538/4.337, allocations: 22.47 MB / 3.219 GB, free: 63.45 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches