Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_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_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.367/2.367, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.001051/0.001051, allocations: 196.1 kB / 498.1 MB, free: 5.672 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.634/1.634, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.001054/0.001054, allocations: 99.27 kB / 0.9346 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.0003852, allocations: 11.98 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3386, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.578, allocations: 170.3 MB / 1.389 GB, free: 7.633 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/0.5784, allocations: 91.94 kB / 1.389 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04513/0.6236, allocations: 17.9 MB / 1.407 GB, free: 5.453 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.876e-06/0.6236, allocations: 0 / 1.407 GB, free: 5.453 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.406e-05/0.6236, allocations: 12 kB / 1.407 GB, free: 5.441 MB / 0.9011 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.001045/0.6247, allocations: 0.5338 MB / 1.407 GB, free: 4.855 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.6248, allocations: 8.031 kB / 1.407 GB, free: 4.848 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008692/0.6256, allocations: 99.61 kB / 1.407 GB, free: 4.75 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.6261, allocations: 262.5 kB / 1.408 GB, free: 4.453 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.6261, allocations: 16.38 kB / 1.408 GB, free: 4.438 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.187e-05/0.6262, allocations: 19.98 kB / 1.408 GB, free: 4.418 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006901/0.6269, allocations: 369.7 kB / 1.408 GB, free: 4.027 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.6269, allocations: 3.984 kB / 1.408 GB, free: 4.023 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.627, allocations: 11.98 kB / 1.408 GB, free: 4.012 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.177e-05/0.627, allocations: 20.33 kB / 1.408 GB, free: 3.988 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006725/0.6277, allocations: 336.6 kB / 1.408 GB, free: 3.66 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.6298, allocations: 1.72 MB / 1.41 GB, free: 1.805 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007076/0.6305, allocations: 345 kB / 1.41 GB, free: 1.449 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00018/0.6307, allocations: 93.06 kB / 1.411 GB, free: 1.34 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.6308, allocations: 30.56 kB / 1.411 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=20): time 2.434e-06/0.6308, allocations: 0 / 1.411 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of matching and sorting (n=21): time 0.001489/0.6323, allocations: 0.6101 MB / 1.411 GB, free: 0.6641 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.6323, allocations: 85.05 kB / 1.411 GB, free: 0.5625 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.6325, allocations: 184.2 kB / 1.411 GB, free: 388 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.6326, allocations: 33.7 kB / 1.411 GB, free: 348 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.6327, allocations: 163.9 kB / 1.412 GB, free: 180 kB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.6328, allocations: 67.02 kB / 1.412 GB, free: 112 kB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.6328, allocations: 8 kB / 1.412 GB, free: 104 kB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.6329, allocations: 330.8 kB / 1.412 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.6332, allocations: 127.9 kB / 1.412 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.6336, allocations: 210.7 kB / 1.412 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.6339, allocations: 174.1 kB / 1.412 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.6339, allocations: 0 / 1.412 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008254/0.6347, allocations: 446.1 kB / 1.413 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004399/0.6352, allocations: 1.039 MB / 1.414 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.6352, allocations: 7.938 kB / 1.414 GB, free: 13.66 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002641/0.6355, allocations: 40.83 kB / 1.414 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.6358, allocations: 75.88 kB / 1.414 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.6373, allocations: 1.512 MB / 1.416 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.6376, allocations: 31.88 kB / 1.416 GB, free: 11.86 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.6376, allocations: 12 kB / 1.416 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.6376, allocations: 4 kB / 1.416 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007115/0.6383, allocations: 373.8 kB / 1.416 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.6383, allocations: 4.328 kB / 1.416 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001364/0.6385, allocations: 41.16 kB / 1.416 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.6388, allocations: 79.88 kB / 1.416 GB, free: 11.36 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.6401, allocations: 1.5 MB / 1.417 GB, free: 9.715 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.6403, allocations: 24.02 kB / 1.418 GB, free: 9.691 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.6403, allocations: 15.94 kB / 1.418 GB, free: 9.676 MB / 0.9167 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 () * Number of clocked 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.0002681/0.6406, allocations: 233 kB / 1.418 GB, free: 9.438 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.252e-05/0.6407, allocations: 19.72 kB / 1.418 GB, free: 9.418 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007485/0.6414, allocations: 372.8 kB / 1.418 GB, free: 9.043 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.6415, allocations: 0 / 1.418 GB, free: 9.043 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.6415, allocations: 4 kB / 1.418 GB, free: 9.039 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.6415, allocations: 7.938 kB / 1.418 GB, free: 9.031 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.643, allocations: 0.9677 MB / 1.419 GB, free: 7.984 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.643, allocations: 0 / 1.419 GB, free: 7.984 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.6433, allocations: 55.91 kB / 1.419 GB, free: 7.93 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.6434, allocations: 36.81 kB / 1.419 GB, free: 7.891 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.6435, allocations: 12.16 kB / 1.419 GB, free: 7.879 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.6446, allocations: 1.417 MB / 1.421 GB, free: 6.332 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.6446, allocations: 4.031 kB / 1.421 GB, free: 6.328 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/0.6454, allocations: 0.6291 MB / 1.421 GB, free: 5.617 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.6456, allocations: 128.7 kB / 1.421 GB, free: 5.473 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.221e-05/0.6456, allocations: 7.953 kB / 1.421 GB, free: 5.465 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.6459, allocations: 23.97 kB / 1.421 GB, free: 5.441 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.736e-05/0.646, allocations: 19.98 kB / 1.421 GB, free: 5.422 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.646, allocations: 11.98 kB / 1.421 GB, free: 5.41 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001402/0.6461, allocations: 158.8 kB / 1.422 GB, free: 5.254 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6461, allocations: 0 / 1.422 GB, free: 5.254 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006998/0.6468, allocations: 123.9 kB / 1.422 GB, free: 5.133 MB / 0.9167 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 () * Number of clocked 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.0002058/0.6471, allocations: 127 kB / 1.422 GB, free: 5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001476/0.6485, allocations: 0.7343 MB / 1.422 GB, free: 4.242 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6486, allocations: 4 kB / 1.422 GB, free: 4.238 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004161/0.649, allocations: 274.4 kB / 1.423 GB, free: 3.957 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.6494, allocations: 46.56 kB / 1.423 GB, free: 3.914 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.6505, allocations: 0.6462 MB / 1.423 GB, free: 3.215 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.6509, allocations: 0.7795 MB / 1.424 GB, free: 2.41 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002679/0.6512, allocations: 82.11 kB / 1.424 GB, free: 2.332 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.477e-05/0.6513, allocations: 27.42 kB / 1.424 GB, free: 2.305 MB / 0.9167 GB Notification: Performance of SimCode: time 4.41e-07/0.6513, allocations: 4 kB / 1.424 GB, free: 2.301 MB / 0.9167 GB Notification: Performance of Templates: time 0.6038/1.255, allocations: 2.982 MB / 1.427 GB, free: 190 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches