Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") [: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.483/1.483, allocations: 249.4 MB / 256.7 MB, free: 6.98 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.001163/0.001163, allocations: 185 kB / 316 MB, free: 3.52 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.567/1.567, allocations: 205.2 MB / 0.5667 GB, free: 15.63 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.0009454/0.0009453, allocations: 97.52 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.151e-06/6.181e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2077, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6472/0.855, allocations: 152.8 MB / 1.034 GB, free: 3.465 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.8552, allocations: 89.72 kB / 1.034 GB, free: 3.418 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.03759/0.8928, allocations: 15.76 MB / 1.049 GB, free: 6.398 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.884e-05/0.8929, allocations: 7.938 kB / 1.049 GB, free: 6.391 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008545/0.8937, allocations: 0.5329 MB / 1.05 GB, free: 5.828 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.8938, allocations: 12.03 kB / 1.05 GB, free: 5.816 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008445/0.8946, allocations: 91.61 kB / 1.05 GB, free: 5.727 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.895, allocations: 256.8 kB / 1.05 GB, free: 5.453 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.895, allocations: 4 kB / 1.05 GB, free: 5.449 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/0.8951, allocations: 12 kB / 1.05 GB, free: 5.438 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003746/0.8955, allocations: 226 kB / 1.05 GB, free: 5.293 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004555/0.8959, allocations: 336.1 kB / 1.051 GB, free: 5.012 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.896, allocations: 4 kB / 1.051 GB, free: 5.008 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.896, allocations: 3.984 kB / 1.051 GB, free: 5.004 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.969e-05/0.896, allocations: 20.31 kB / 1.051 GB, free: 4.98 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.8979, allocations: 1.681 MB / 1.052 GB, free: 3.352 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.8983, allocations: 260.5 kB / 1.053 GB, free: 3.145 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.8984, allocations: 146.8 kB / 1.053 GB, free: 3.035 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.8986, allocations: 89.41 kB / 1.053 GB, free: 2.93 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.8987, allocations: 38.47 kB / 1.053 GB, free: 2.883 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.8987, allocations: 3.938 kB / 1.053 GB, free: 2.879 MB / 0.6667 GB Notification: Performance of matching and sorting (n=21): time 0.0009184/0.8996, allocations: 377.9 kB / 1.053 GB, free: 2.57 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.8996, allocations: 85.2 kB / 1.053 GB, free: 2.469 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.8998, allocations: 176.9 kB / 1.053 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.8999, allocations: 25.7 kB / 1.053 GB, free: 2.281 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.8999, allocations: 150.4 kB / 1.054 GB, free: 2.141 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.9, allocations: 70.12 kB / 1.054 GB, free: 2.078 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.582e-05/0.9, allocations: 0 / 1.054 GB, free: 2.078 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9002, allocations: 329.7 kB / 1.054 GB, free: 1.758 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.9003, allocations: 110.1 kB / 1.054 GB, free: 1.688 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.9005, allocations: 192.5 kB / 1.054 GB, free: 1.504 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.9008, allocations: 155.8 kB / 1.054 GB, free: 1.398 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.9008, allocations: 0 / 1.054 GB, free: 1.398 MB / 0.6667 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006677/0.9015, allocations: 394.5 kB / 1.055 GB, free: 1.094 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004396/0.902, allocations: 1.046 MB / 1.056 GB, free: 15.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.902, allocations: 4 kB / 1.056 GB, free: 15.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.9022, allocations: 50.23 kB / 1.056 GB, free: 15.93 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.9026, allocations: 66.77 kB / 1.056 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.904, allocations: 1.411 MB / 1.057 GB, free: 14.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.9042, allocations: 23.97 kB / 1.057 GB, free: 14.39 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.9043, allocations: 15.3 kB / 1.057 GB, free: 14.38 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.543e-06/0.9043, allocations: 12 kB / 1.057 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005705/0.9049, allocations: 310.1 kB / 1.058 GB, free: 14.13 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.9049, allocations: 4 kB / 1.058 GB, free: 14.13 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.9051, allocations: 44.36 kB / 1.058 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.9054, allocations: 71.27 kB / 1.058 GB, free: 14.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.9065, allocations: 1.403 MB / 1.059 GB, free: 12.58 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.9067, allocations: 23.88 kB / 1.059 GB, free: 12.56 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.9067, allocations: 19.36 kB / 1.059 GB, free: 12.54 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.9068, allocations: 119.1 kB / 1.059 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.67e-05/0.9069, allocations: 15.81 kB / 1.059 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005909/0.9075, allocations: 337.7 kB / 1.06 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.9075, allocations: 0 / 1.06 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9075, allocations: 8 kB / 1.06 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.9075, allocations: 0 / 1.06 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.9089, allocations: 0.8969 MB / 1.061 GB, free: 11.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.9089, allocations: 0 / 1.061 GB, free: 11.32 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.9091, allocations: 43.97 kB / 1.061 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.9093, allocations: 43.33 kB / 1.061 GB, free: 11.24 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.9093, allocations: 4 kB / 1.061 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.9104, allocations: 1.338 MB / 1.062 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.9104, allocations: 0 / 1.062 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006637/0.911, allocations: 0.5973 MB / 1.063 GB, free: 9.25 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.9112, allocations: 123.7 kB / 1.063 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.9112, allocations: 4 kB / 1.063 GB, free: 9.113 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.9115, allocations: 22.8 kB / 1.063 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.9116, allocations: 7.984 kB / 1.063 GB, free: 9.086 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.9116, allocations: 15.3 kB / 1.063 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001262/0.9117, allocations: 140.2 kB / 1.063 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0006289/0.9124, allocations: 107.9 kB / 1.063 GB, free: 8.852 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001896/0.9126, allocations: 118.9 kB / 1.063 GB, free: 8.73 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009552/0.9135, allocations: 0.6465 MB / 1.064 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.9135, allocations: 320 / 1.064 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000317/0.9139, allocations: 244.1 kB / 1.064 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.9142, allocations: 31.45 kB / 1.064 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008957/0.9151, allocations: 430.2 kB / 1.064 GB, free: 7.543 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000479/0.9156, allocations: 0.797 MB / 1.065 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of SimCode: time 3.2e-07/0.9156, allocations: 0 / 1.065 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of Templates: time 0.007937/0.9235, allocations: 4.228 MB / 1.069 GB, free: 2.52 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches