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.001006/0.001006, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001116/0.001116, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.704/2.704, allocations: 409.4 MB / 0.684 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003535, allocations: 16 kB / 0.8378 GB, free: 6.473 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7832/0.7835, allocations: 146.8 MB / 0.9811 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003577/0.7872, allocations: 2.496 MB / 0.9836 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002542/0.7897, allocations: 1.532 MB / 0.9851 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.7899, allocations: 4 kB / 0.9851 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002006/0.7902, allocations: 35.72 kB / 0.9851 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005344/0.7907, allocations: 135.4 kB / 0.9852 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005803/0.7913, allocations: 163.5 kB / 0.9854 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004931/0.7918, allocations: 350.9 kB / 0.9857 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008291/0.7926, allocations: 363 kB / 0.9861 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.7929, allocations: 95.62 kB / 0.9862 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003449/0.7933, allocations: 139.5 kB / 0.9863 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.7933, allocations: 8 kB / 0.9863 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003617/0.7937, allocations: 139.8 kB / 0.9864 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.807e-05/0.7938, allocations: 75.8 kB / 0.9865 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.725e-05/0.7939, allocations: 65.58 kB / 0.9866 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.7943, allocations: 313.4 kB / 0.9869 GB, free: 344 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.7943, allocations: 0 / 0.9869 GB, free: 344 kB / 0.7325 GB Notification: Performance of FrontEnd: time 2.594e-06/0.7943, allocations: 0 / 0.9869 GB, free: 344 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.7944, allocations: 0 / 0.9869 GB, free: 344 kB / 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.0009759/0.7953, allocations: 0.5066 MB / 0.9874 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.7954, allocations: 12.03 kB / 0.9874 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.656e-05/0.7955, allocations: 58.53 kB / 0.9874 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007218/0.7962, allocations: 87.62 kB / 0.9875 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.7966, allocations: 252.2 kB / 0.9878 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.7967, allocations: 16.3 kB / 0.9878 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.953e-05/0.7967, allocations: 19.95 kB / 0.9878 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006549/0.7974, allocations: 390.2 kB / 0.9882 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.7974, allocations: 0 / 0.9882 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.7975, allocations: 8 kB / 0.9882 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.396e-05/0.7975, allocations: 24.31 kB / 0.9882 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006139/0.7981, allocations: 332.6 kB / 0.9885 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.8002, allocations: 1.724 MB / 0.9902 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007644/0.8009, allocations: 341.1 kB / 0.9905 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.8012, allocations: 153.5 kB / 0.9907 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/0.8014, allocations: 89.09 kB / 0.9908 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.8014, allocations: 42.5 kB / 0.9908 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.8014, allocations: 0 / 0.9908 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of matching and sorting (n=21): time 0.001479/0.8029, allocations: 0.6132 MB / 0.9914 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.803, allocations: 81.11 kB / 0.9915 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.8032, allocations: 199.7 kB / 0.9917 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.8033, allocations: 37.64 kB / 0.9917 GB, free: 11 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.8034, allocations: 159.9 kB / 0.9918 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.8035, allocations: 78.91 kB / 0.9919 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.8035, allocations: 4 kB / 0.9919 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.8036, allocations: 330.8 kB / 0.9922 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.8039, allocations: 128.5 kB / 0.9924 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.8042, allocations: 219.5 kB / 0.9926 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.8046, allocations: 157.6 kB / 0.9927 GB, free: 9.902 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.8046, allocations: 4 kB / 0.9927 GB, free: 9.898 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008319/0.8054, allocations: 440.9 kB / 0.9931 GB, free: 9.461 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.8056, allocations: 173.5 kB / 0.9933 GB, free: 9.254 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.8056, allocations: 0 / 0.9933 GB, free: 9.254 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.8059, allocations: 40.83 kB / 0.9934 GB, free: 9.211 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.8062, allocations: 79.88 kB / 0.9934 GB, free: 9.133 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.8077, allocations: 1.493 MB / 0.9949 GB, free: 7.504 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/0.808, allocations: 35.86 kB / 0.9949 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.05e-05/0.808, allocations: 16 kB / 0.9949 GB, free: 7.453 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.808, allocations: 4 kB / 0.9949 GB, free: 7.449 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008125/0.8089, allocations: 368.4 kB / 0.9953 GB, free: 7.086 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.8089, allocations: 4 kB / 0.9953 GB, free: 7.082 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.809, allocations: 40.83 kB / 0.9953 GB, free: 7.039 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.8094, allocations: 72.16 kB / 0.9954 GB, free: 6.969 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.8109, allocations: 1.485 MB / 0.9969 GB, free: 5.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.8111, allocations: 31.94 kB / 0.9969 GB, free: 5.309 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.8112, allocations: 8 kB / 0.9969 GB, free: 5.301 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.0002532/0.8114, allocations: 244.9 kB / 0.9971 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.899e-05/0.8115, allocations: 19.81 kB / 0.9971 GB, free: 5.031 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007405/0.8122, allocations: 365.2 kB / 0.9975 GB, free: 4.668 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.8123, allocations: 4 kB / 0.9975 GB, free: 4.664 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.8123, allocations: 0 / 0.9975 GB, free: 4.664 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.8123, allocations: 0 / 0.9975 GB, free: 4.664 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.814, allocations: 0.9845 MB / 0.9985 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.814, allocations: 0 / 0.9985 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.8142, allocations: 59.89 kB / 0.9985 GB, free: 3.543 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001325/0.8144, allocations: 40.77 kB / 0.9986 GB, free: 3.5 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.8144, allocations: 4 kB / 0.9986 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.8157, allocations: 1.402 MB / 0.9999 GB, free: 1.965 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.8158, allocations: 4.031 kB / 0.9999 GB, free: 1.961 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007908/0.8166, allocations: 0.5471 MB / 1 GB, free: 1.375 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.8167, allocations: 124.8 kB / 1.001 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.8168, allocations: 4 kB / 1.001 GB, free: 1.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.817, allocations: 31.97 kB / 1.001 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.8171, allocations: 19.94 kB / 1.001 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.8171, allocations: 12 kB / 1.001 GB, free: 1.168 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000156/0.8173, allocations: 147.2 kB / 1.001 GB, free: 1.023 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.693e-06/0.8173, allocations: 0 / 1.001 GB, free: 1.023 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006109/0.8179, allocations: 111.9 kB / 1.001 GB, free: 0.9141 MB / 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.001069/0.819, allocations: 1.091 MB / 1.002 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001288/0.8203, allocations: 0.7402 MB / 1.003 GB, free: 15.01 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.8203, allocations: 0 / 1.003 GB, free: 15.01 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004337/0.8207, allocations: 274.4 kB / 1.003 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004705/0.8212, allocations: 35 kB / 1.003 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.8241, allocations: 1.651 MB / 1.005 GB, free: 12.94 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.8245, allocations: 0.7756 MB / 1.005 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002599/0.8248, allocations: 85.86 kB / 1.005 GB, free: 12.06 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.825, allocations: 63.42 kB / 1.005 GB, free: 12 MB / 0.7637 GB Notification: Performance of SimCode: time 5.51e-07/0.825, allocations: 3.938 kB / 1.005 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.8438, allocations: 5.184 MB / 1.011 GB, free: 7 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.8441, allocations: 228.7 kB / 1.011 GB, free: 6.754 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.871, allocations: 0 / 1.011 GB, free: 6.754 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