Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") [: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.768/1.768, allocations: 387.2 MB / 394.5 MB, free: 4.438 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009661/0.0009661, allocations: 169.3 kB / 487 MB, free: 10.94 MB / 402.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.118/1.118, allocations: 221.3 MB / 0.7819 GB, free: 3.836 MB / 0.5496 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008573/0.0008574, allocations: 96.56 kB / 0.9213 GB, free: 4.93 MB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 5.791e-06/5.901e-06, allocations: 0 / 1.066 GB, free: 140.9 MB / 0.7214 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1913, allocations: 142.3 MB / 1.205 GB, free: 14.62 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5367/0.728, allocations: 170.8 MB / 1.372 GB, free: 13.14 MB / 0.8464 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.7283, allocations: 87.94 kB / 1.372 GB, free: 13.06 MB / 0.8464 GB Notification: Performance of FrontEnd: time 0.04067/0.769, allocations: 18.18 MB / 1.39 GB, free: 10.72 MB / 0.8621 GB Notification: Performance of Transformations before backend: time 1.709e-05/0.769, allocations: 8 kB / 1.39 GB, free: 10.71 MB / 0.8621 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.000948/0.77, allocations: 0.6171 MB / 1.39 GB, free: 10.04 MB / 0.8621 GB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.77, allocations: 8.031 kB / 1.39 GB, free: 10.03 MB / 0.8621 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007512/0.7708, allocations: 103.5 kB / 1.391 GB, free: 9.93 MB / 0.8621 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003156/0.7711, allocations: 278.5 kB / 1.391 GB, free: 9.617 MB / 0.8621 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.7711, allocations: 4 kB / 1.391 GB, free: 9.613 MB / 0.8621 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.7712, allocations: 12 kB / 1.391 GB, free: 9.602 MB / 0.8621 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003939/0.7716, allocations: 248.8 kB / 1.391 GB, free: 9.355 MB / 0.8621 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004581/0.772, allocations: 353.3 kB / 1.391 GB, free: 8.98 MB / 0.8621 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.772, allocations: 7.906 kB / 1.391 GB, free: 8.973 MB / 0.8621 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.974e-05/0.7721, allocations: 0 / 1.391 GB, free: 8.973 MB / 0.8621 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-05/0.7721, allocations: 20.36 kB / 1.391 GB, free: 8.949 MB / 0.8621 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.7738, allocations: 1.615 MB / 1.393 GB, free: 7.219 MB / 0.8621 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004731/0.7743, allocations: 337.5 kB / 1.393 GB, free: 6.867 MB / 0.8621 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.7745, allocations: 157.6 kB / 1.393 GB, free: 6.707 MB / 0.8621 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.7747, allocations: 85.11 kB / 1.394 GB, free: 6.605 MB / 0.8621 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.775, allocations: 223.4 kB / 1.394 GB, free: 6.371 MB / 0.8621 GB Notification: Performance of pre-optimization done (n=27): time 1.313e-06/0.775, allocations: 0 / 1.394 GB, free: 6.371 MB / 0.8621 GB Notification: Performance of matching and sorting (n=28): time 0.0008199/0.7758, allocations: 432.9 kB / 1.394 GB, free: 5.938 MB / 0.8621 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.7759, allocations: 92.95 kB / 1.394 GB, free: 5.828 MB / 0.8621 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.776, allocations: 183.1 kB / 1.394 GB, free: 5.645 MB / 0.8621 GB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.7761, allocations: 29.64 kB / 1.394 GB, free: 5.609 MB / 0.8621 GB Notification: Performance of collectInitialEqns (initialization): time 6.862e-05/0.7761, allocations: 156 kB / 1.395 GB, free: 5.453 MB / 0.8621 GB Notification: Performance of collectInitialBindings (initialization): time 6.291e-05/0.7762, allocations: 86.75 kB / 1.395 GB, free: 5.367 MB / 0.8621 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-05/0.7762, allocations: 0 / 1.395 GB, free: 5.367 MB / 0.8621 GB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.7763, allocations: 338.8 kB / 1.395 GB, free: 5.027 MB / 0.8621 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.7765, allocations: 132.3 kB / 1.395 GB, free: 4.898 MB / 0.8621 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.7767, allocations: 197.4 kB / 1.395 GB, free: 4.676 MB / 0.8621 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.777, allocations: 173.1 kB / 1.395 GB, free: 4.508 MB / 0.8621 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.777, allocations: 0 / 1.395 GB, free: 4.508 MB / 0.8621 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007029/0.7777, allocations: 430.7 kB / 1.396 GB, free: 4.078 MB / 0.8621 GB Notification: Performance of prepare postOptimizeDAE: time 0.00024/0.778, allocations: 0.8775 MB / 1.397 GB, free: 3.133 MB / 0.8621 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.778, allocations: 4 kB / 1.397 GB, free: 3.129 MB / 0.8621 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.7782, allocations: 40.83 kB / 1.397 GB, free: 3.086 MB / 0.8621 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003982/0.7786, allocations: 87.88 kB / 1.397 GB, free: 3 MB / 0.8621 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.7797, allocations: 1.418 MB / 1.398 GB, free: 1.457 MB / 0.8621 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.78, allocations: 43.92 kB / 1.398 GB, free: 1.414 MB / 0.8621 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.7801, allocations: 19.98 kB / 1.398 GB, free: 1.395 MB / 0.8621 GB Notification: Performance of prepare postOptimizeDAE: time 5.189e-06/0.7801, allocations: 4 kB / 1.398 GB, free: 1.391 MB / 0.8621 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006039/0.7807, allocations: 349.2 kB / 1.399 GB, free: 1.047 MB / 0.8621 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.7807, allocations: 0 / 1.399 GB, free: 1.047 MB / 0.8621 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/0.7808, allocations: 44.83 kB / 1.399 GB, free: 1 MB / 0.8621 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003543/0.7812, allocations: 84.03 kB / 1.399 GB, free: 0.918 MB / 0.8621 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.7822, allocations: 1.402 MB / 1.4 GB, free: 15.4 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.7825, allocations: 43.92 kB / 1.4 GB, free: 15.36 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/0.7826, allocations: 23.89 kB / 1.4 GB, free: 15.33 MB / 0.8777 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.788e-05/0.7827, allocations: 108.9 kB / 1.4 GB, free: 15.22 MB / 0.8777 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.299e-05/0.7827, allocations: 23.72 kB / 1.4 GB, free: 15.2 MB / 0.8777 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000681/0.7834, allocations: 400.4 kB / 1.401 GB, free: 14.8 MB / 0.8777 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.7834, allocations: 7.938 kB / 1.401 GB, free: 14.79 MB / 0.8777 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.7834, allocations: 0 / 1.401 GB, free: 14.79 MB / 0.8777 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.7834, allocations: 0 / 1.401 GB, free: 14.79 MB / 0.8777 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005122/0.784, allocations: 0.5198 MB / 1.401 GB, free: 14.22 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.784, allocations: 4.094 kB / 1.401 GB, free: 14.21 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.7844, allocations: 79.88 kB / 1.401 GB, free: 14.14 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.7845, allocations: 44.73 kB / 1.401 GB, free: 14.09 MB / 0.8777 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.7845, allocations: 0 / 1.401 GB, free: 14.09 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008901/0.7854, allocations: 1.338 MB / 1.403 GB, free: 12.64 MB / 0.8777 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.7854, allocations: 3.938 kB / 1.403 GB, free: 12.63 MB / 0.8777 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006389/0.7861, allocations: 0.5074 MB / 1.403 GB, free: 12.08 MB / 0.8777 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.7862, allocations: 128.7 kB / 1.403 GB, free: 11.93 MB / 0.8777 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.7863, allocations: 7.984 kB / 1.403 GB, free: 11.93 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.7866, allocations: 39.97 kB / 1.403 GB, free: 11.89 MB / 0.8777 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.499e-05/0.7867, allocations: 23.95 kB / 1.403 GB, free: 11.86 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.7867, allocations: 11.91 kB / 1.403 GB, free: 11.85 MB / 0.8777 GB Notification: Performance of sort global known variables: time 0.0001182/0.7868, allocations: 160.5 kB / 1.404 GB, free: 11.7 MB / 0.8777 GB Notification: Performance of remove unused functions: time 0.0005072/0.7873, allocations: 127.9 kB / 1.404 GB, free: 11.57 MB / 0.8777 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001655/0.7875, allocations: 123.8 kB / 1.404 GB, free: 11.44 MB / 0.8777 GB Notification: Performance of simCode: created initialization part: time 0.0009937/0.7885, allocations: 0.7656 MB / 1.405 GB, free: 10.64 MB / 0.8777 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.7885, allocations: 1.125 kB / 1.405 GB, free: 10.64 MB / 0.8777 GB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.7889, allocations: 285.6 kB / 1.405 GB, free: 10.35 MB / 0.8777 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.7892, allocations: 36.41 kB / 1.405 GB, free: 10.31 MB / 0.8777 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009517/0.7902, allocations: 482.1 kB / 1.405 GB, free: 9.809 MB / 0.8777 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.7906, allocations: 0.8119 MB / 1.406 GB, free: 8.973 MB / 0.8777 GB Notification: Performance of SimCode: time 2.91e-07/0.7906, allocations: 0 / 1.406 GB, free: 8.973 MB / 0.8777 GB Notification: Performance of Templates: time 0.00859/0.7992, allocations: 5.701 MB / 1.412 GB, free: 3.281 MB / 0.8777 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches