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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 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_latest_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_latest_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.001596/0.001596, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001755/0.001755, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.341/2.341, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.604/4.604, allocations: 409.2 MB / 0.6838 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006388/0.0006389, allocations: 12 kB / 0.8375 GB, free: 6.586 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.406/1.407, allocations: 146.8 MB / 0.9809 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005144/1.412, allocations: 2.446 MB / 0.9832 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00371/1.416, allocations: 1.509 MB / 0.9847 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/1.416, allocations: 3.938 kB / 0.9847 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002152/1.417, allocations: 27.78 kB / 0.9848 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006657/1.417, allocations: 123.6 kB / 0.9849 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008457/1.418, allocations: 163.6 kB / 0.985 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004322/1.419, allocations: 179.6 kB / 0.9852 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/1.42, allocations: 369.4 kB / 0.9855 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/1.42, allocations: 95.67 kB / 0.9856 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000344/1.42, allocations: 91.66 kB / 0.9857 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/1.42, allocations: 12 kB / 0.9857 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004763/1.421, allocations: 131.8 kB / 0.9859 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/1.421, allocations: 71.8 kB / 0.9859 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.368e-05/1.421, allocations: 65.58 kB / 0.986 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006005/1.422, allocations: 305.5 kB / 0.9863 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/1.422, allocations: 0 / 0.9863 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.226e-06/1.422, allocations: 0 / 0.9863 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.675e-06/1.422, allocations: 0 / 0.9863 GB, free: 0.7305 MB / 0.7325 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.001283/1.423, allocations: 0.5143 MB / 0.9868 GB, free: 168 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/1.423, allocations: 8.031 kB / 0.9868 GB, free: 160 kB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/1.423, allocations: 54.55 kB / 0.9868 GB, free: 96 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/1.425, allocations: 103.7 kB / 0.9869 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/1.425, allocations: 248.1 kB / 0.9872 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/1.425, allocations: 16.38 kB / 0.9872 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.98e-05/1.425, allocations: 23.95 kB / 0.9872 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/1.426, allocations: 374.2 kB / 0.9876 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/1.426, allocations: 4 kB / 0.9876 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/1.427, allocations: 8 kB / 0.9876 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.556e-05/1.427, allocations: 24.31 kB / 0.9876 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009838/1.428, allocations: 332.6 kB / 0.9879 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002955/1.431, allocations: 1.724 MB / 0.9896 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/1.432, allocations: 337 kB / 0.9899 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002151/1.432, allocations: 97.39 kB / 0.99 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/1.432, allocations: 38.56 kB / 0.9901 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 2.464e-06/1.432, allocations: 3.938 kB / 0.9901 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of matching and sorting (n=21): time 0.002326/1.434, allocations: 0.6134 MB / 0.9907 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/1.435, allocations: 81.05 kB / 0.9907 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/1.435, allocations: 203.7 kB / 0.9909 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/1.435, allocations: 33.7 kB / 0.991 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/1.435, allocations: 155.9 kB / 0.9911 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/1.435, allocations: 78.89 kB / 0.9912 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/1.435, allocations: 8 kB / 0.9912 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001523/1.435, allocations: 326.8 kB / 0.9915 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/1.436, allocations: 132.5 kB / 0.9916 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005088/1.436, allocations: 211.5 kB / 0.9918 GB, free: 10.61 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/1.437, allocations: 165.5 kB / 0.992 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/1.437, allocations: 0 / 0.992 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001385/1.438, allocations: 447.1 kB / 0.9924 GB, free: 10 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007087/1.439, allocations: 1.043 MB / 0.9934 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/1.439, allocations: 4 kB / 0.9935 GB, free: 8.875 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003785/1.44, allocations: 40.83 kB / 0.9935 GB, free: 8.832 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/1.44, allocations: 75.88 kB / 0.9936 GB, free: 8.758 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/1.442, allocations: 1.509 MB / 0.995 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004507/1.443, allocations: 31.83 kB / 0.9951 GB, free: 7.082 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/1.443, allocations: 15.98 kB / 0.9951 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/1.443, allocations: 4 kB / 0.9951 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/1.444, allocations: 372.3 kB / 0.9954 GB, free: 6.695 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/1.444, allocations: 7.984 kB / 0.9954 GB, free: 6.688 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/1.445, allocations: 36.83 kB / 0.9955 GB, free: 6.648 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/1.445, allocations: 76.23 kB / 0.9956 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/1.447, allocations: 1.497 MB / 0.997 GB, free: 4.934 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003782/1.448, allocations: 31.94 kB / 0.997 GB, free: 4.902 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/1.448, allocations: 8 kB / 0.9971 GB, free: 4.895 MB / 0.7481 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.0004096/1.448, allocations: 240.9 kB / 0.9973 GB, free: 4.648 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/1.448, allocations: 15.81 kB / 0.9973 GB, free: 4.633 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/1.449, allocations: 368 kB / 0.9977 GB, free: 4.266 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/1.449, allocations: 4 kB / 0.9977 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.449, allocations: 0 / 0.9977 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/1.449, allocations: 0 / 0.9977 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002468/1.452, allocations: 0.9734 MB / 0.9986 GB, free: 3.211 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/1.452, allocations: 0 / 0.9986 GB, free: 3.211 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/1.452, allocations: 63.84 kB / 0.9987 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/1.453, allocations: 37.11 kB / 0.9987 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.16e-05/1.453, allocations: 4 kB / 0.9987 GB, free: 3.105 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/1.454, allocations: 1.425 MB / 1 GB, free: 1.551 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.455, allocations: 0 / 1 GB, free: 1.551 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/1.456, allocations: 0.6291 MB / 1.001 GB, free: 0.8398 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/1.456, allocations: 128.7 kB / 1.001 GB, free: 0.6953 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.541e-05/1.456, allocations: 7.984 kB / 1.001 GB, free: 0.6875 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/1.457, allocations: 19.98 kB / 1.001 GB, free: 0.668 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/1.457, allocations: 27.92 kB / 1.001 GB, free: 0.6406 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/1.457, allocations: 4 kB / 1.001 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002339/1.457, allocations: 159.2 kB / 1.001 GB, free: 492 kB / 0.7481 GB Notification: Performance of sort global known variables: time 2.41e-07/1.457, allocations: 0 / 1.001 GB, free: 492 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001162/1.458, allocations: 104 kB / 1.001 GB, free: 388 kB / 0.7481 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.002063/1.46, allocations: 1.655 MB / 1.003 GB, free: 14.65 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00213/1.462, allocations: 0.7447 MB / 1.003 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.462, allocations: 0 / 1.003 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006926/1.463, allocations: 275.2 kB / 1.004 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000662/1.464, allocations: 23.98 kB / 1.004 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/1.47, allocations: 3.318 MB / 1.007 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/1.471, allocations: 0.7716 MB / 1.008 GB, free: 9.34 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005375/1.471, allocations: 94.12 kB / 1.008 GB, free: 9.25 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/1.471, allocations: 71.41 kB / 1.008 GB, free: 9.18 MB / 0.7637 GB Notification: Performance of SimCode: time 3.366e-06/1.471, allocations: 0 / 1.008 GB, free: 9.18 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/1.502, allocations: 5.152 MB / 1.013 GB, free: 4.215 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003526/1.502, allocations: 217.6 kB / 1.013 GB, free: 3.977 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.103/4.605, allocations: 0 / 1.013 GB, free: 3.977 MB / 0.7637 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat does not exist to compare? outputFormat=mat