Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.727/1.727, allocations: 289.9 MB / 297.4 MB, free: 6.344 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 184.9 kB / 366.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.2 MB / 0.626 GB, free: 7.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009013/0.0009011, allocations: 95.69 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.985e-05/1.975e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7186/0.7186, allocations: 116.3 MB / 0.9733 GB, free: 76.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2195/0.9382, allocations: 159.1 MB / 1.129 GB, free: 7.07 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.9384, allocations: 83.94 kB / 1.129 GB, free: 6.988 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.04137/0.9798, allocations: 16.16 MB / 1.145 GB, free: 6.777 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.323e-06/0.9799, allocations: 0 / 1.145 GB, free: 6.777 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.776e-05/0.9799, allocations: 4 kB / 1.145 GB, free: 6.773 MB / 0.7448 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.0008753/0.9808, allocations: 0.5215 MB / 1.145 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.9808, allocations: 8.031 kB / 1.145 GB, free: 6.195 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008347/0.9817, allocations: 103.6 kB / 1.145 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.9821, allocations: 260.3 kB / 1.145 GB, free: 5.801 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.9821, allocations: 11.94 kB / 1.145 GB, free: 5.789 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.442e-05/0.9821, allocations: 12 kB / 1.145 GB, free: 5.777 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003955/0.9825, allocations: 220.7 kB / 1.146 GB, free: 5.562 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005068/0.9831, allocations: 329.1 kB / 1.146 GB, free: 5.211 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.9831, allocations: 4 kB / 1.146 GB, free: 5.207 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.9831, allocations: 0 / 1.146 GB, free: 5.207 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.571e-05/0.9832, allocations: 20.31 kB / 1.146 GB, free: 5.184 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.9852, allocations: 1.674 MB / 1.148 GB, free: 3.387 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.9858, allocations: 305.2 kB / 1.148 GB, free: 3.07 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.986, allocations: 133.7 kB / 1.148 GB, free: 2.934 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001654/0.9862, allocations: 89.08 kB / 1.148 GB, free: 2.828 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.9863, allocations: 38.5 kB / 1.148 GB, free: 2.781 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.9863, allocations: 4 kB / 1.148 GB, free: 2.777 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21): time 0.0008713/0.9871, allocations: 366.4 kB / 1.149 GB, free: 2.41 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.9872, allocations: 85.11 kB / 1.149 GB, free: 2.309 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.9874, allocations: 173.6 kB / 1.149 GB, free: 2.133 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.9874, allocations: 25.7 kB / 1.149 GB, free: 2.102 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.9876, allocations: 159.9 kB / 1.149 GB, free: 1.941 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.71e-05/0.9877, allocations: 67.02 kB / 1.149 GB, free: 1.875 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.575e-05/0.9877, allocations: 4.094 kB / 1.149 GB, free: 1.871 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.9878, allocations: 330.8 kB / 1.149 GB, free: 1.539 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.988, allocations: 108 kB / 1.149 GB, free: 1.434 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.9882, allocations: 194.3 kB / 1.15 GB, free: 1.203 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.9885, allocations: 143.7 kB / 1.15 GB, free: 1.066 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.9885, allocations: 4 kB / 1.15 GB, free: 1.062 MB / 0.7448 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006607/0.9892, allocations: 386 kB / 1.15 GB, free: 0.6797 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004755/0.9897, allocations: 1.051 MB / 1.151 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9897, allocations: 0 / 1.151 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/0.9899, allocations: 40.83 kB / 1.151 GB, free: 15.5 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.9902, allocations: 75.88 kB / 1.151 GB, free: 15.43 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.9916, allocations: 1.426 MB / 1.153 GB, free: 13.88 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.9918, allocations: 27.88 kB / 1.153 GB, free: 13.86 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.9919, allocations: 15.98 kB / 1.153 GB, free: 13.84 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.9919, allocations: 4 kB / 1.153 GB, free: 13.84 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005718/0.9925, allocations: 315.2 kB / 1.153 GB, free: 13.53 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.9925, allocations: 0 / 1.153 GB, free: 13.53 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001269/0.9926, allocations: 40.83 kB / 1.153 GB, free: 13.48 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.9929, allocations: 74.11 kB / 1.153 GB, free: 13.41 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.9941, allocations: 1.434 MB / 1.155 GB, free: 11.86 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.9943, allocations: 20.05 kB / 1.155 GB, free: 11.84 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.9943, allocations: 21.02 kB / 1.155 GB, free: 11.82 MB / 0.7605 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.0001177/0.9945, allocations: 112.9 kB / 1.155 GB, free: 11.7 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005594/0.995, allocations: 304.8 kB / 1.155 GB, free: 11.4 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.9951, allocations: 19.72 kB / 1.155 GB, free: 11.38 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006116/0.9957, allocations: 322.2 kB / 1.155 GB, free: 11.06 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.9957, allocations: 4 kB / 1.155 GB, free: 11.05 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.9958, allocations: 0 / 1.155 GB, free: 11.05 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.9958, allocations: 3.953 kB / 1.155 GB, free: 11.05 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.9972, allocations: 0.8882 MB / 1.156 GB, free: 10.1 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.9972, allocations: 0 / 1.156 GB, free: 10.1 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002435/0.9974, allocations: 55.89 kB / 1.156 GB, free: 10.04 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.9976, allocations: 37.05 kB / 1.156 GB, free: 10 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.9976, allocations: 4 kB / 1.156 GB, free: 10 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.9987, allocations: 1.342 MB / 1.158 GB, free: 8.547 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.9988, allocations: 5 kB / 1.158 GB, free: 8.543 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007563/0.9995, allocations: 0.5887 MB / 1.158 GB, free: 7.875 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.9997, allocations: 124.8 kB / 1.158 GB, free: 7.734 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.9997, allocations: 8 kB / 1.158 GB, free: 7.727 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/1, allocations: 19.97 kB / 1.158 GB, free: 7.707 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.658e-05/1, allocations: 27.86 kB / 1.158 GB, free: 7.68 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/1, allocations: 8 kB / 1.158 GB, free: 7.672 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001351/1, allocations: 140.2 kB / 1.158 GB, free: 7.535 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.5e-07/1, allocations: 4 kB / 1.158 GB, free: 7.531 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0006604/1.001, allocations: 107.9 kB / 1.159 GB, free: 7.426 MB / 0.7605 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.001299/1.002, allocations: 1.622 MB / 1.16 GB, free: 5.727 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001064/1.003, allocations: 0.6286 MB / 1.161 GB, free: 5.078 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.003, allocations: 1.375 kB / 1.161 GB, free: 5.078 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003298/1.004, allocations: 246 kB / 1.161 GB, free: 4.828 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/1.004, allocations: 19.98 kB / 1.161 GB, free: 4.809 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/1.005, allocations: 490.6 kB / 1.161 GB, free: 4.277 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/1.006, allocations: 0.7715 MB / 1.162 GB, free: 3.48 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0002819/1.006, allocations: 98.56 kB / 1.162 GB, free: 3.391 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/1.006, allocations: 63.42 kB / 1.162 GB, free: 3.328 MB / 0.7605 GB Notification: Performance of SimCode: time 1.844e-06/1.006, allocations: 0 / 1.162 GB, free: 3.328 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/1.034, allocations: 4.813 MB / 1.167 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003209/1.035, allocations: 157.5 kB / 1.167 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.817, allocations: 3.938 kB / 1.167 GB, free: 14.4 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)