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.761/1.761, allocations: 292.6 MB / 307.5 MB, free: 5.188 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.001303/0.001303, allocations: 192.3 kB / 377.1 MB, free: 1.512 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.74/1.74, allocations: 205.4 MB / 0.6366 GB, free: 8.625 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.001005/0.001005, allocations: 95.31 kB / 0.7509 GB, free: 63.06 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003654, allocations: 8 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3178, allocations: 116.3 MB / 0.9884 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9448/1.263, allocations: 159.8 MB / 1.145 GB, free: 19.23 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/1.263, allocations: 85.92 kB / 1.145 GB, free: 19.16 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.03775/1.301, allocations: 16.32 MB / 1.161 GB, free: 6.223 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.864e-06/1.301, allocations: 0 / 1.161 GB, free: 6.223 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.695e-05/1.301, allocations: 7.984 kB / 1.161 GB, free: 6.215 MB / 0.7292 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.0008372/1.302, allocations: 0.5471 MB / 1.161 GB, free: 5.617 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.302, allocations: 12.02 kB / 1.161 GB, free: 5.605 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.209e-05/1.302, allocations: 54.55 kB / 1.161 GB, free: 5.543 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007943/1.303, allocations: 98.59 kB / 1.161 GB, free: 5.449 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/1.303, allocations: 254.6 kB / 1.161 GB, free: 5.16 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/1.303, allocations: 20.31 kB / 1.161 GB, free: 5.141 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/1.303, allocations: 23.42 kB / 1.162 GB, free: 5.121 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/1.304, allocations: 377.4 kB / 1.162 GB, free: 4.723 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/1.304, allocations: 0 / 1.162 GB, free: 4.723 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/1.304, allocations: 12 kB / 1.162 GB, free: 4.711 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.87e-05/1.304, allocations: 24.31 kB / 1.162 GB, free: 4.684 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005196/1.304, allocations: 332.6 kB / 1.162 GB, free: 4.359 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/1.306, allocations: 1.716 MB / 1.164 GB, free: 2.512 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/1.306, allocations: 346.2 kB / 1.164 GB, free: 2.156 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001485/1.307, allocations: 85.09 kB / 1.164 GB, free: 2.055 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/1.307, allocations: 46.5 kB / 1.164 GB, free: 2 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=20): time 1.432e-06/1.307, allocations: 0 / 1.164 GB, free: 2 MB / 0.7292 GB Notification: Performance of matching and sorting (n=21): time 0.00125/1.308, allocations: 0.6104 MB / 1.165 GB, free: 1.363 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/1.308, allocations: 77.11 kB / 1.165 GB, free: 1.27 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/1.308, allocations: 191.5 kB / 1.165 GB, free: 1.074 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/1.308, allocations: 25.7 kB / 1.165 GB, free: 1.043 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/1.308, allocations: 163.9 kB / 1.165 GB, free: 0.8789 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/1.308, allocations: 70.94 kB / 1.165 GB, free: 0.8086 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/1.308, allocations: 8 kB / 1.165 GB, free: 0.8008 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.877e-05/1.308, allocations: 330.8 kB / 1.166 GB, free: 480 kB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/1.309, allocations: 135.8 kB / 1.166 GB, free: 344 kB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/1.309, allocations: 214.3 kB / 1.166 GB, free: 88 kB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/1.309, allocations: 166.1 kB / 1.166 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/1.309, allocations: 0 / 1.166 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007872/1.31, allocations: 439 kB / 1.167 GB, free: 15.49 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005943/1.311, allocations: 1.047 MB / 1.168 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.311, allocations: 11.92 kB / 1.168 GB, free: 14.35 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002562/1.311, allocations: 36.83 kB / 1.168 GB, free: 14.31 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/1.311, allocations: 75.88 kB / 1.168 GB, free: 14.24 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/1.313, allocations: 1.518 MB / 1.169 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/1.313, allocations: 29 kB / 1.169 GB, free: 12.56 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/1.313, allocations: 20.59 kB / 1.169 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/1.313, allocations: 4 kB / 1.169 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006993/1.314, allocations: 364.4 kB / 1.17 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.314, allocations: 7.984 kB / 1.17 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001313/1.314, allocations: 40.83 kB / 1.17 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/1.314, allocations: 63.89 kB / 1.17 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/1.315, allocations: 1.494 MB / 1.171 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/1.316, allocations: 36.88 kB / 1.171 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/1.316, allocations: 12.78 kB / 1.171 GB, free: 10.38 MB / 0.7448 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.0002456/1.316, allocations: 241 kB / 1.172 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.469e-05/1.316, allocations: 19.72 kB / 1.172 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007081/1.317, allocations: 366.3 kB / 1.172 GB, free: 9.754 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.317, allocations: 3.938 kB / 1.172 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/1.317, allocations: 4 kB / 1.172 GB, free: 9.746 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.317, allocations: 0 / 1.172 GB, free: 9.746 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/1.318, allocations: 0.9699 MB / 1.173 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/1.318, allocations: 4.5 kB / 1.173 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/1.319, allocations: 55.89 kB / 1.173 GB, free: 8.641 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/1.319, allocations: 40.81 kB / 1.173 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/1.319, allocations: 4 kB / 1.173 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/1.32, allocations: 1.418 MB / 1.174 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.32, allocations: 4.031 kB / 1.174 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007922/1.321, allocations: 0.6233 MB / 1.175 GB, free: 6.332 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/1.321, allocations: 128.7 kB / 1.175 GB, free: 6.188 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/1.321, allocations: 15.98 kB / 1.175 GB, free: 6.172 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/1.321, allocations: 19.98 kB / 1.175 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/1.321, allocations: 27.86 kB / 1.175 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/1.321, allocations: 8 kB / 1.175 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001446/1.321, allocations: 155 kB / 1.175 GB, free: 5.965 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.321, allocations: 0 / 1.175 GB, free: 5.965 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006304/1.322, allocations: 120 kB / 1.175 GB, free: 5.848 MB / 0.7448 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.001375/1.323, allocations: 1.661 MB / 1.177 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001315/1.325, allocations: 0.7426 MB / 1.178 GB, free: 3.352 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.325, allocations: 0 / 1.178 GB, free: 3.352 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004098/1.325, allocations: 279 kB / 1.178 GB, free: 3.066 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/1.326, allocations: 29.42 kB / 1.178 GB, free: 3.039 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/1.329, allocations: 3.33 MB / 1.181 GB, free: 15.59 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/1.329, allocations: 0.7756 MB / 1.182 GB, free: 14.79 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0002645/1.33, allocations: 90.91 kB / 1.182 GB, free: 14.7 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/1.33, allocations: 67.41 kB / 1.182 GB, free: 14.63 MB / 0.7605 GB Notification: Performance of SimCode: time 2.41e-07/1.33, allocations: 0 / 1.182 GB, free: 14.63 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/1.349, allocations: 5.159 MB / 1.187 GB, free: 9.672 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/1.349, allocations: 210.4 kB / 1.187 GB, free: 9.43 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/3.312, allocations: 0 / 1.187 GB, free: 9.43 MB / 0.7605 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)