Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001414/0.001414, allocations: 184.4 kB / 487.4 MB, free: 5.023 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.613/1.613, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 99.78 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.891e-05/1.893e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2345, allocations: 142.4 MB / 1.206 GB, free: 43.83 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8219/1.056, allocations: 202.8 MB / 1.404 GB, free: 5.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/1.057, allocations: 100.4 kB / 1.404 GB, free: 5.105 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2069/1.264, allocations: 73.31 MB / 1.476 GB, free: 7.355 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.924e-06/1.264, allocations: 0 / 1.476 GB, free: 7.355 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.423e-05/1.264, allocations: 36 kB / 1.476 GB, free: 7.32 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.003004/1.267, allocations: 1.562 MB / 1.477 GB, free: 5.801 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/1.267, allocations: 8.562 kB / 1.477 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002511/1.269, allocations: 0.4934 MB / 1.478 GB, free: 5.305 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/1.271, allocations: 1.155 MB / 1.479 GB, free: 4.371 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.172e-05/1.271, allocations: 52 kB / 1.479 GB, free: 4.32 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/1.272, allocations: 88 kB / 1.479 GB, free: 4.234 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00291/1.274, allocations: 1.776 MB / 1.481 GB, free: 3.109 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003416/1.278, allocations: 2.212 MB / 1.483 GB, free: 1.488 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.132e-05/1.278, allocations: 7.984 kB / 1.483 GB, free: 1.48 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/1.278, allocations: 0 / 1.483 GB, free: 1.48 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/1.278, allocations: 94.56 kB / 1.483 GB, free: 1.395 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01144/1.29, allocations: 10.12 MB / 1.493 GB, free: 8.156 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008569/1.291, allocations: 0.5414 MB / 1.493 GB, free: 7.605 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00051/1.291, allocations: 369.1 kB / 1.494 GB, free: 7.242 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/1.291, allocations: 89.09 kB / 1.494 GB, free: 7.137 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/1.291, allocations: 46.41 kB / 1.494 GB, free: 7.082 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=36): time 3.777e-06/1.291, allocations: 0 / 1.494 GB, free: 7.082 MB / 0.9011 GB Notification: Performance of matching and sorting (n=52): time 0.008193/1.299, allocations: 3.152 MB / 1.497 GB, free: 3.91 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/1.3, allocations: 89.55 kB / 1.497 GB, free: 3.805 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/1.301, allocations: 0.7218 MB / 1.498 GB, free: 3.074 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/1.301, allocations: 29.7 kB / 1.498 GB, free: 3.039 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005114/1.301, allocations: 0.7538 MB / 1.499 GB, free: 2.273 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/1.301, allocations: 177.4 kB / 1.499 GB, free: 2.098 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/1.301, allocations: 0 / 1.499 GB, free: 2.098 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001835/1.302, allocations: 390.7 kB / 1.499 GB, free: 1.707 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007795/1.302, allocations: 0.5765 MB / 1.5 GB, free: 1.129 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/1.303, allocations: 0.9376 MB / 1.501 GB, free: 20 kB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/1.305, allocations: 0.8295 MB / 1.501 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/1.305, allocations: 4 kB / 1.501 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.006211/1.311, allocations: 2.578 MB / 1.504 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.002006/1.313, allocations: 4.531 MB / 1.508 GB, free: 7.699 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/1.313, allocations: 12 kB / 1.508 GB, free: 7.688 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004322/1.317, allocations: 1.096 MB / 1.509 GB, free: 6.582 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/1.318, allocations: 219.7 kB / 1.51 GB, free: 6.367 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007998/1.326, allocations: 6.545 MB / 1.516 GB, free: 15.54 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/1.328, allocations: 151.6 kB / 1.516 GB, free: 15.39 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/1.328, allocations: 47.98 kB / 1.516 GB, free: 15.34 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/1.328, allocations: 4 kB / 1.516 GB, free: 15.34 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002385/1.33, allocations: 1.266 MB / 1.517 GB, free: 14.07 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/1.33, allocations: 12 kB / 1.517 GB, free: 14.06 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.265e-05/1.33, allocations: 20.91 kB / 1.518 GB, free: 14.04 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/1.331, allocations: 283.5 kB / 1.518 GB, free: 13.76 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/1.332, allocations: 23.89 kB / 1.518 GB, free: 13.74 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008546/1.332, allocations: 99.84 kB / 1.518 GB, free: 13.64 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.781e-05/1.332, allocations: 44 kB / 1.518 GB, free: 13.6 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002931/1.333, allocations: 144.1 kB / 1.518 GB, free: 13.45 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005699/1.338, allocations: 2.16 MB / 1.52 GB, free: 11.27 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/1.339, allocations: 75.11 kB / 1.52 GB, free: 11.2 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005768/1.344, allocations: 2.266 MB / 1.522 GB, free: 8.91 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/1.345, allocations: 4 kB / 1.522 GB, free: 8.906 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/1.345, allocations: 4 kB / 1.522 GB, free: 8.902 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/1.345, allocations: 7.922 kB / 1.522 GB, free: 8.895 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008221/1.353, allocations: 3.881 MB / 1.526 GB, free: 4.902 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.353, allocations: 0 / 1.526 GB, free: 4.902 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/1.353, allocations: 103.9 kB / 1.526 GB, free: 4.801 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004783/1.358, allocations: 1.357 MB / 1.528 GB, free: 3.43 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.904e-05/1.358, allocations: 4 kB / 1.528 GB, free: 3.426 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/1.369, allocations: 9.104 MB / 1.537 GB, free: 9.859 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.369, allocations: 8.062 kB / 1.537 GB, free: 9.852 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/1.374, allocations: 2.322 MB / 1.539 GB, free: 7.422 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006995/1.375, allocations: 284.1 kB / 1.539 GB, free: 7.125 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/1.375, allocations: 4 kB / 1.539 GB, free: 7.121 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009876/1.376, allocations: 155.7 kB / 1.539 GB, free: 6.969 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/1.376, allocations: 47.88 kB / 1.539 GB, free: 6.922 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.713e-05/1.376, allocations: 12 kB / 1.539 GB, free: 6.91 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0007516/1.377, allocations: 0.5654 MB / 1.54 GB, free: 6.348 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.377, allocations: 0 / 1.54 GB, free: 6.348 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002113/1.379, allocations: 0.5585 MB / 1.54 GB, free: 5.789 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.006342/1.386, allocations: 3.535 MB / 1.544 GB, free: 2.164 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003766/1.389, allocations: 2.356 MB / 1.546 GB, free: 15.79 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.389, allocations: 0 / 1.546 GB, free: 15.79 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001795/1.391, allocations: 1.187 MB / 1.547 GB, free: 14.56 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/1.393, allocations: 194.5 kB / 1.548 GB, free: 14.38 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005675/1.398, allocations: 2.828 MB / 1.55 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/1.4, allocations: 1.642 MB / 1.552 GB, free: 9.801 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.001556/1.401, allocations: 0.58 MB / 1.552 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006039/1.402, allocations: 475.3 kB / 1.553 GB, free: 8.75 MB / 0.9636 GB Notification: Performance of SimCode: time 6.61e-07/1.402, allocations: 0 / 1.553 GB, free: 8.75 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05677/1.459, allocations: 29.9 MB / 1.582 GB, free: 10.96 MB / 0.9948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/1.459, allocations: 168.1 kB / 1.582 GB, free: 10.77 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.544/4.003, allocations: 0 / 1.582 GB, free: 10.77 MB / 0.9948 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat