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: "" <> 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/Buildings 10.0.0-master/package.mo): time 2.31/2.31, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001042/0.001042, allocations: 179.9 kB / 0.4901 GB, free: 2.277 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.573/1.573, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.001359/0.001359, allocations: 100.2 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003615, allocations: 14.5 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3332, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2169/0.5502, allocations: 171.1 MB / 1.396 GB, free: 14.32 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003882/0.5507, allocations: 91.95 kB / 1.396 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.04643/0.5971, allocations: 17.91 MB / 1.414 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of FrontEnd: time 4.478e-06/0.5972, allocations: 0 / 1.414 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.607e-05/0.5972, allocations: 11.94 kB / 1.414 GB, free: 12.12 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.001192/0.5984, allocations: 0.5338 MB / 1.415 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.485e-05/0.5985, allocations: 12.5 kB / 1.415 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.5987, allocations: 62.52 kB / 1.415 GB, free: 11.46 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008553/0.5995, allocations: 87.62 kB / 1.415 GB, free: 11.37 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004389/0.6, allocations: 264.3 kB / 1.415 GB, free: 11.07 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.6, allocations: 16.36 kB / 1.415 GB, free: 11.06 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.339e-05/0.6001, allocations: 20 kB / 1.415 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007283/0.6008, allocations: 378.4 kB / 1.415 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.6009, allocations: 0 / 1.415 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.6009, allocations: 8 kB / 1.415 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-05/0.601, allocations: 28.3 kB / 1.415 GB, free: 10.6 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006765/0.6016, allocations: 336.6 kB / 1.416 GB, free: 10.27 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.6038, allocations: 1.721 MB / 1.417 GB, free: 8.418 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007216/0.6045, allocations: 345 kB / 1.418 GB, free: 8.062 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001783/0.6047, allocations: 85.09 kB / 1.418 GB, free: 7.961 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.6048, allocations: 34.56 kB / 1.418 GB, free: 7.918 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.6048, allocations: 0 / 1.418 GB, free: 7.918 MB / 0.9167 GB Notification: Performance of matching and sorting (n=21): time 0.001498/0.6063, allocations: 0.6078 MB / 1.418 GB, free: 7.281 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.6064, allocations: 77.11 kB / 1.418 GB, free: 7.188 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.6066, allocations: 187.6 kB / 1.419 GB, free: 6.996 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.6066, allocations: 29.7 kB / 1.419 GB, free: 6.961 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.835e-05/0.6067, allocations: 163.8 kB / 1.419 GB, free: 6.797 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.44e-05/0.6068, allocations: 67.02 kB / 1.419 GB, free: 6.73 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/0.6068, allocations: 4 kB / 1.419 GB, free: 6.727 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.6069, allocations: 338.8 kB / 1.419 GB, free: 6.387 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.6072, allocations: 135.9 kB / 1.419 GB, free: 6.254 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003093/0.6075, allocations: 210.3 kB / 1.42 GB, free: 6.008 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003175/0.6079, allocations: 166.9 kB / 1.42 GB, free: 5.848 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6079, allocations: 0 / 1.42 GB, free: 5.848 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008887/0.6088, allocations: 438.2 kB / 1.42 GB, free: 5.414 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006263/0.6094, allocations: 1.044 MB / 1.421 GB, free: 4.289 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.6094, allocations: 4 kB / 1.421 GB, free: 4.285 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.6097, allocations: 44.81 kB / 1.421 GB, free: 4.238 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.61, allocations: 71.89 kB / 1.421 GB, free: 4.168 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.6116, allocations: 1.524 MB / 1.423 GB, free: 2.508 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.6119, allocations: 27.91 kB / 1.423 GB, free: 2.48 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.612, allocations: 19.94 kB / 1.423 GB, free: 2.461 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.612, allocations: 4 kB / 1.423 GB, free: 2.457 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007465/0.6127, allocations: 370.4 kB / 1.423 GB, free: 2.094 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.6127, allocations: 4 kB / 1.423 GB, free: 2.09 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001449/0.6129, allocations: 45.16 kB / 1.423 GB, free: 2.043 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.6132, allocations: 67.89 kB / 1.423 GB, free: 1.977 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.6146, allocations: 1.49 MB / 1.425 GB, free: 356 kB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.6148, allocations: 47.69 kB / 1.425 GB, free: 308 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.6149, allocations: 11.94 kB / 1.425 GB, free: 296 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.0002463/0.6151, allocations: 233 kB / 1.425 GB, free: 52 kB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.6152, allocations: 19.72 kB / 1.425 GB, free: 32 kB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7317/1.347, allocations: 363.9 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.347, allocations: 3.219 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.347, allocations: 2.844 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/1.347, allocations: 3.016 kB / 1.425 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/1.349, allocations: 0.9671 MB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/1.349, allocations: 6.141 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/1.349, allocations: 55.03 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/1.349, allocations: 38.98 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/1.349, allocations: 5.75 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/1.35, allocations: 1.42 MB / 1.428 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.35, allocations: 3.469 kB / 1.428 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007222/1.351, allocations: 0.6237 MB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/1.351, allocations: 121.8 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/1.351, allocations: 10.27 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/1.351, allocations: 24.8 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7e-05/1.352, allocations: 20.27 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/1.352, allocations: 10.89 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001344/1.352, allocations: 157.8 kB / 1.429 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/1.352, allocations: 6.156 kB / 1.429 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0007298/1.352, allocations: 124.8 kB / 1.429 GB, free: 181.6 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.001125/1.354, allocations: 1.66 MB / 1.43 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001338/1.355, allocations: 0.7349 MB / 1.431 GB, free: 180 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.355, allocations: 3.062 kB / 1.431 GB, free: 180 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000433/1.355, allocations: 276.4 kB / 1.431 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/1.356, allocations: 31.56 kB / 1.432 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/1.359, allocations: 3.316 MB / 1.435 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/1.36, allocations: 0.7784 MB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000312/1.36, allocations: 89.92 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/1.36, allocations: 70.39 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of SimCode: time 5.01e-07/1.36, allocations: 0 / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/1.387, allocations: 5.17 MB / 1.441 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/1.387, allocations: 217.7 kB / 1.441 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/3.376, allocations: 0 / 1.441 GB, free: 176.4 MB / 0.9167 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) 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