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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.804/1.804, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000554/0.0005541, allocations: 11.59 kB / 0.6738 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2755, allocations: 116.3 MB / 0.7874 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.00344/0.279, allocations: 2.502 MB / 0.7898 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002286/0.2813, allocations: 1.564 MB / 0.7914 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.2815, allocations: 7.938 kB / 0.7914 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.2817, allocations: 27.78 kB / 0.7914 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000384/0.2821, allocations: 135.4 kB / 0.7915 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.2825, allocations: 174.5 kB / 0.7917 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004045/0.2829, allocations: 346.9 kB / 0.792 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007202/0.2837, allocations: 363.2 kB / 0.7924 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2839, allocations: 99.61 kB / 0.7925 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.2841, allocations: 139.5 kB / 0.7926 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.2842, allocations: 12 kB / 0.7926 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002679/0.2844, allocations: 143.8 kB / 0.7927 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.76e-05/0.2845, allocations: 75.78 kB / 0.7928 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.178e-05/0.2846, allocations: 61.58 kB / 0.7929 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.2849, allocations: 295.2 kB / 0.7932 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2849, allocations: 0 / 0.7932 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.444e-06/0.2849, allocations: 4 kB / 0.7932 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.2849, allocations: 0 / 0.7932 GB, free: 5.906 MB / 0.6075 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.0007502/0.2857, allocations: 0.5221 MB / 0.7937 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2858, allocations: 8.031 kB / 0.7937 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.538e-05/0.2858, allocations: 58.55 kB / 0.7937 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000647/0.2865, allocations: 95.56 kB / 0.7938 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.2868, allocations: 258.5 kB / 0.7941 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.2868, allocations: 16.38 kB / 0.7941 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.2869, allocations: 16 kB / 0.7941 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005757/0.2874, allocations: 382 kB / 0.7945 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2875, allocations: 4 kB / 0.7945 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.2875, allocations: 8 kB / 0.7945 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.514e-05/0.2876, allocations: 24.31 kB / 0.7945 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000581/0.2881, allocations: 336.6 kB / 0.7948 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.2899, allocations: 1.732 MB / 0.7965 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006592/0.2906, allocations: 329.1 kB / 0.7968 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.2909, allocations: 157.6 kB / 0.797 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.291, allocations: 89.09 kB / 0.7971 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.291, allocations: 34.56 kB / 0.7971 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=20): time 2.104e-06/0.291, allocations: 0 / 0.7971 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21): time 0.00144/0.2925, allocations: 0.6035 MB / 0.7977 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.2925, allocations: 85.2 kB / 0.7978 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/0.2928, allocations: 215.6 kB / 0.798 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.2928, allocations: 25.7 kB / 0.798 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.2929, allocations: 159.9 kB / 0.7982 GB, free: 416 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.293, allocations: 70.98 kB / 0.7982 GB, free: 344 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.293, allocations: 8 kB / 0.7982 GB, free: 336 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2931, allocations: 326.8 kB / 0.7985 GB, free: 0 / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.2934, allocations: 136.5 kB / 0.7987 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002796/0.2937, allocations: 215.5 kB / 0.7989 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.294, allocations: 160.8 kB / 0.799 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.294, allocations: 0 / 0.799 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007695/0.2948, allocations: 443.5 kB / 0.7995 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.2949, allocations: 173.4 kB / 0.7996 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2949, allocations: 7.938 kB / 0.7996 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002299/0.2951, allocations: 44.86 kB / 0.7997 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.2955, allocations: 75.86 kB / 0.7997 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.2968, allocations: 1.485 MB / 0.8012 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.2971, allocations: 35.81 kB / 0.8012 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.2971, allocations: 8.062 kB / 0.8012 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-06/0.2971, allocations: 4 kB / 0.8012 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006593/0.2978, allocations: 376.3 kB / 0.8016 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2978, allocations: 4.344 kB / 0.8016 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001166/0.2979, allocations: 48.72 kB / 0.8016 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.2982, allocations: 71.89 kB / 0.8017 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.2993, allocations: 1.485 MB / 0.8032 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.2995, allocations: 23.97 kB / 0.8032 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.2996, allocations: 16 kB / 0.8032 GB, free: 10.85 MB / 0.6231 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.0002321/0.2998, allocations: 229 kB / 0.8034 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.2999, allocations: 27.73 kB / 0.8034 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007049/0.3006, allocations: 364 kB / 0.8038 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3006, allocations: 11.98 kB / 0.8038 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3006, allocations: 0 / 0.8038 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3007, allocations: 4 kB / 0.8038 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.3021, allocations: 0.9628 MB / 0.8048 GB, free: 9.172 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3021, allocations: 4 kB / 0.8048 GB, free: 9.168 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.3024, allocations: 51.89 kB / 0.8048 GB, free: 9.117 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000131/0.3025, allocations: 45.05 kB / 0.8048 GB, free: 9.07 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.3025, allocations: 4 kB / 0.8049 GB, free: 9.066 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.3036, allocations: 1.421 MB / 0.8062 GB, free: 7.516 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3036, allocations: 0 / 0.8062 GB, free: 7.516 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007203/0.3044, allocations: 0.5316 MB / 0.8068 GB, free: 6.945 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.3045, allocations: 132.7 kB / 0.8069 GB, free: 6.797 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.3045, allocations: 7.984 kB / 0.8069 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.3048, allocations: 23.98 kB / 0.8069 GB, free: 6.766 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.657e-05/0.3048, allocations: 27.91 kB / 0.8069 GB, free: 6.738 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.3049, allocations: 4 kB / 0.8069 GB, free: 6.734 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001458/0.305, allocations: 163.5 kB / 0.8071 GB, free: 6.574 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/0.305, allocations: 0 / 0.8071 GB, free: 6.574 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006233/0.3057, allocations: 104 kB / 0.8072 GB, free: 6.473 MB / 0.6231 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.0009892/0.3067, allocations: 1.102 MB / 0.8083 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001256/0.3079, allocations: 0.744 MB / 0.809 GB, free: 4.551 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.308, allocations: 0 / 0.809 GB, free: 4.551 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003792/0.3083, allocations: 275.2 kB / 0.8093 GB, free: 4.27 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004928/0.3088, allocations: 35.94 kB / 0.8093 GB, free: 4.234 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.3114, allocations: 1.647 MB / 0.8109 GB, free: 2.488 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.3118, allocations: 0.7678 MB / 0.8117 GB, free: 1.691 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002619/0.3121, allocations: 93.84 kB / 0.8117 GB, free: 1.598 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3122, allocations: 71.34 kB / 0.8118 GB, free: 1.527 MB / 0.6231 GB Notification: Performance of SimCode: time 6.21e-07/0.3122, allocations: 4 kB / 0.8118 GB, free: 1.523 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.3296, allocations: 5.163 MB / 0.8169 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.3299, allocations: 227.9 kB / 0.8171 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.331, allocations: 0 / 0.8171 GB, free: 12.29 MB / 0.6387 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) Environment - environmentSimulation: