Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_9_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.001169/0.001169, 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.001278/0.001278, 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 1.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.432/2.432, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003402, allocations: 11.98 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7932/0.7935, allocations: 142.3 MB / 0.9536 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.002773/0.7963, allocations: 2.448 MB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001947/0.7983, allocations: 1.496 MB / 0.9574 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.7985, allocations: 9.75 kB / 0.9575 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.7986, allocations: 31.67 kB / 0.9575 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003458/0.799, allocations: 114 kB / 0.9576 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004094/0.7994, allocations: 168.3 kB / 0.9578 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002636/0.7997, allocations: 174.5 kB / 0.9579 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005813/0.8002, allocations: 374.3 kB / 0.9583 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.8004, allocations: 82.25 kB / 0.9584 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.8006, allocations: 106.1 kB / 0.9585 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.8006, allocations: 11 kB / 0.9585 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.8009, allocations: 140.8 kB / 0.9586 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.653e-05/0.801, allocations: 67.27 kB / 0.9587 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.395e-05/0.801, allocations: 63.48 kB / 0.9587 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.8013, allocations: 305.5 kB / 0.959 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.8013, allocations: 0 / 0.959 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8013, allocations: 0 / 0.959 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.255e-06/0.8013, allocations: 0 / 0.959 GB, free: 3.988 MB / 0.7169 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.0006969/0.802, allocations: 0.5072 MB / 0.9595 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.8021, allocations: 8.469 kB / 0.9595 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.155e-05/0.8021, allocations: 59.5 kB / 0.9596 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007169/0.8029, allocations: 97.08 kB / 0.9597 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.8031, allocations: 251.1 kB / 0.9599 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.8032, allocations: 16.61 kB / 0.9599 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.581e-05/0.8032, allocations: 15.72 kB / 0.9599 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005573/0.8038, allocations: 389.6 kB / 0.9603 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.8038, allocations: 3.938 kB / 0.9603 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.8038, allocations: 10.7 kB / 0.9603 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.503e-05/0.8039, allocations: 30.19 kB / 0.9604 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005779/0.8045, allocations: 333.2 kB / 0.9607 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.806, allocations: 1.718 MB / 0.9623 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.8067, allocations: 334.3 kB / 0.9627 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/0.8068, allocations: 92.11 kB / 0.9628 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.8068, allocations: 39.69 kB / 0.9628 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 2.245e-06/0.8068, allocations: 0 / 0.9628 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001287/0.8081, allocations: 0.6162 MB / 0.9634 GB, free: 340 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.8082, allocations: 79.55 kB / 0.9635 GB, free: 244 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.8084, allocations: 207.1 kB / 0.9637 GB, free: 80 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.8084, allocations: 26.55 kB / 0.9637 GB, free: 48 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.8086, allocations: 159.6 kB / 0.9638 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.8086, allocations: 72.28 kB / 0.9639 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.8086, allocations: 5.219 kB / 0.9639 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.8088, allocations: 331.2 kB / 0.9642 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.8091, allocations: 134.1 kB / 0.9644 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.8094, allocations: 212.8 kB / 0.9646 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.8097, allocations: 164 kB / 0.9647 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.8097, allocations: 0 / 0.9647 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008037/0.8105, allocations: 439.1 kB / 0.9651 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004079/0.8109, allocations: 1.052 MB / 0.9662 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.811, allocations: 2.094 kB / 0.9662 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/0.8112, allocations: 55.39 kB / 0.9662 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.8115, allocations: 75.44 kB / 0.9663 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.8129, allocations: 1.498 MB / 0.9678 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.8132, allocations: 31.56 kB / 0.9678 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.8132, allocations: 18.16 kB / 0.9678 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.8132, allocations: 9.578 kB / 0.9678 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007175/0.8139, allocations: 369.2 kB / 0.9682 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.814, allocations: 2.188 kB / 0.9682 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001311/0.8141, allocations: 45.12 kB / 0.9682 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.8144, allocations: 66.52 kB / 0.9683 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.8161, allocations: 1.505 MB / 0.9697 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.8164, allocations: 25.72 kB / 0.9698 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.8164, allocations: 13.12 kB / 0.9698 GB, free: 10.56 MB / 0.7325 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.0002812/0.8167, allocations: 232 kB / 0.97 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.8168, allocations: 33 kB / 0.97 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009753/0.8178, allocations: 375.5 kB / 0.9704 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.8179, allocations: 6.625 kB / 0.9704 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.8179, allocations: 2.031 kB / 0.9704 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.8179, allocations: 3.938 kB / 0.9704 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.8195, allocations: 0.9637 MB / 0.9713 GB, free: 9.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.8195, allocations: 2.25 kB / 0.9713 GB, free: 9.328 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.8197, allocations: 58.33 kB / 0.9714 GB, free: 9.309 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.8199, allocations: 34.89 kB / 0.9714 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.8199, allocations: 7 kB / 0.9714 GB, free: 9.285 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.821, allocations: 1.423 MB / 0.9728 GB, free: 7.859 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.821, allocations: 2.156 kB / 0.9728 GB, free: 7.859 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007657/0.8218, allocations: 0.6226 MB / 0.9734 GB, free: 7.32 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.8219, allocations: 125.5 kB / 0.9736 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.822, allocations: 7.688 kB / 0.9736 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.8222, allocations: 25.19 kB / 0.9736 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.731e-05/0.8223, allocations: 29.05 kB / 0.9736 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.8223, allocations: 6.531 kB / 0.9736 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001643/0.8225, allocations: 154.2 kB / 0.9738 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8225, allocations: 0 / 0.9738 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006416/0.8232, allocations: 109 kB / 0.9739 GB, free: 7.031 MB / 0.7325 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.001209/0.8244, allocations: 1.664 MB / 0.9755 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001341/0.8257, allocations: 0.7358 MB / 0.9762 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.8257, allocations: 0 / 0.9762 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003993/0.8262, allocations: 273.5 kB / 0.9765 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.8265, allocations: 29.7 kB / 0.9765 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.83, allocations: 3.301 MB / 0.9797 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.8305, allocations: 0.7748 MB / 0.9805 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002678/0.8307, allocations: 90.77 kB / 0.9806 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.8309, allocations: 72.34 kB / 0.9806 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of SimCode: time 7.01e-07/0.8309, allocations: 0 / 0.9806 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.8488, allocations: 5.162 MB / 0.9857 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/0.8491, allocations: 204.5 kB / 0.9859 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.619, allocations: 0 / 0.9859 GB, free: 13.77 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat does not exist to compare? outputFormat=mat