Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.499/2.499, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001106/0.001106, allocations: 171.9 kB / 0.4902 GB, free: 2.227 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.676/1.676, allocations: 223.2 MB / 0.7992 GB, free: 14.64 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.0009291/0.0009292, allocations: 102.3 kB / 0.9396 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003816, allocations: 10.47 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3065, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2441/0.5506, allocations: 171.2 MB / 1.396 GB, free: 14.29 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003304/0.551, allocations: 83.95 kB / 1.396 GB, free: 14.21 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.04459/0.5956, allocations: 17.9 MB / 1.414 GB, free: 12.12 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.567e-06/0.5957, allocations: 4 kB / 1.414 GB, free: 12.12 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.479e-05/0.5957, allocations: 7.938 kB / 1.414 GB, free: 12.11 MB / 0.9167 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.00105/0.5968, allocations: 0.5299 MB / 1.414 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.5968, allocations: 8.562 kB / 1.414 GB, free: 11.52 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008612/0.5977, allocations: 99.55 kB / 1.415 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.5981, allocations: 254.6 kB / 1.415 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.5981, allocations: 16.38 kB / 1.415 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.5982, allocations: 23.98 kB / 1.415 GB, free: 11.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006878/0.5989, allocations: 370.4 kB / 1.415 GB, free: 10.7 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.5989, allocations: 15.83 kB / 1.415 GB, free: 10.69 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.599, allocations: 11.98 kB / 1.415 GB, free: 10.68 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.915e-05/0.599, allocations: 20.31 kB / 1.415 GB, free: 10.65 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006448/0.5997, allocations: 332.6 kB / 1.416 GB, free: 10.33 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.6017, allocations: 1.728 MB / 1.417 GB, free: 8.465 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007125/0.6025, allocations: 336.9 kB / 1.418 GB, free: 8.117 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002317/0.6027, allocations: 97.05 kB / 1.418 GB, free: 8.004 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.6027, allocations: 34.56 kB / 1.418 GB, free: 7.961 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 2.224e-06/0.6028, allocations: 0 / 1.418 GB, free: 7.961 MB / 0.9167 GB Notification: Performance of matching and sorting (n=21): time 0.001467/0.6042, allocations: 0.6058 MB / 1.418 GB, free: 7.328 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.6043, allocations: 81.11 kB / 1.418 GB, free: 7.23 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.6045, allocations: 183.6 kB / 1.419 GB, free: 7.043 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.6045, allocations: 25.7 kB / 1.419 GB, free: 7.012 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.6047, allocations: 167.9 kB / 1.419 GB, free: 6.844 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.6047, allocations: 78.88 kB / 1.419 GB, free: 6.766 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.6048, allocations: 4 kB / 1.419 GB, free: 6.762 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.6049, allocations: 326.8 kB / 1.419 GB, free: 6.434 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.6051, allocations: 131.9 kB / 1.419 GB, free: 6.305 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.6055, allocations: 222.3 kB / 1.419 GB, free: 6.047 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.6058, allocations: 156.8 kB / 1.42 GB, free: 5.895 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.6058, allocations: 0 / 1.42 GB, free: 5.895 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008165/0.6066, allocations: 446 kB / 1.42 GB, free: 5.453 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004505/0.6071, allocations: 1.043 MB / 1.421 GB, free: 4.328 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.6071, allocations: 4 kB / 1.421 GB, free: 4.324 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002416/0.6073, allocations: 40.83 kB / 1.421 GB, free: 4.281 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003205/0.6076, allocations: 79.88 kB / 1.421 GB, free: 4.203 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.6091, allocations: 1.524 MB / 1.423 GB, free: 2.543 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.6094, allocations: 31.91 kB / 1.423 GB, free: 2.512 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.6094, allocations: 8 kB / 1.423 GB, free: 2.504 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.6094, allocations: 4 kB / 1.423 GB, free: 2.5 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006937/0.6101, allocations: 366.3 kB / 1.423 GB, free: 2.141 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.6101, allocations: 4 kB / 1.423 GB, free: 2.137 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001365/0.6103, allocations: 44.77 kB / 1.423 GB, free: 2.09 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000268/0.6105, allocations: 72.2 kB / 1.423 GB, free: 2.02 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.6118, allocations: 1.498 MB / 1.425 GB, free: 392 kB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.612, allocations: 31.89 kB / 1.425 GB, free: 360 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.6121, allocations: 19.95 kB / 1.425 GB, free: 340 kB / 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.0002602/0.6123, allocations: 229 kB / 1.425 GB, free: 100 kB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.97e-05/0.6124, allocations: 23.75 kB / 1.425 GB, free: 76 kB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7389/1.351, allocations: 368.2 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/1.351, allocations: 4.562 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.351, allocations: 1.969 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/1.351, allocations: 3.797 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/1.353, allocations: 0.9694 MB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/1.353, allocations: 2.344 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/1.353, allocations: 55.53 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/1.353, allocations: 40.39 kB / 1.426 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/1.353, allocations: 3.031 kB / 1.426 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009289/1.354, allocations: 1.42 MB / 1.428 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.354, allocations: 3.562 kB / 1.428 GB, free: 182.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000702/1.355, allocations: 0.6267 MB / 1.428 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/1.355, allocations: 121.1 kB / 1.428 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/1.355, allocations: 7.953 kB / 1.428 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/1.355, allocations: 24.16 kB / 1.428 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/1.356, allocations: 25.95 kB / 1.428 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/1.356, allocations: 10.08 kB / 1.428 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001253/1.356, allocations: 161.3 kB / 1.429 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.2e-07/1.356, allocations: 0 / 1.429 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006537/1.356, allocations: 118.1 kB / 1.429 GB, free: 181.5 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.0001792/1.357, allocations: 124 kB / 1.429 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001216/1.358, allocations: 0.7361 MB / 1.43 GB, free: 181.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.358, allocations: 2.656 kB / 1.43 GB, free: 181.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003784/1.358, allocations: 271.7 kB / 1.43 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/1.359, allocations: 33.28 kB / 1.43 GB, free: 181.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009439/1.36, allocations: 0.6716 MB / 1.431 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/1.36, allocations: 0.7777 MB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002718/1.36, allocations: 93.22 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.616e-05/1.36, allocations: 19.42 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of SimCode: time 3.11e-07/1.36, allocations: 2.938 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of Templates: time 0.007643/1.368, allocations: 2.984 MB / 1.434 GB, free: 180 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches