Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",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.352/2.352, allocations: 393.5 MB / 408.4 MB, free: 11 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.001177/0.001178, allocations: 183.6 kB / 0.4901 GB, free: 2.215 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.683/1.683, 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.000986/0.0009859, allocations: 104.6 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003738, allocations: 10.59 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3342, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9255/1.26, allocations: 205.1 MB / 1.43 GB, free: 192.3 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/1.26, allocations: 100.9 kB / 1.43 GB, free: 192.3 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1824/1.443, allocations: 77.3 MB / 1.505 GB, free: 141.5 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.835e-06/1.443, allocations: 3.938 kB / 1.505 GB, free: 141.5 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.000167/1.443, allocations: 47.98 kB / 1.505 GB, free: 141.5 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: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.006012/1.449, allocations: 1.792 MB / 1.507 GB, free: 139.6 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/1.449, allocations: 12.03 kB / 1.507 GB, free: 139.6 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001283/1.45, allocations: 252.8 kB / 1.507 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00374/1.454, allocations: 0.6689 MB / 1.508 GB, free: 138.7 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003632/1.458, allocations: 1.25 MB / 1.509 GB, free: 137.4 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/1.458, allocations: 123.2 kB / 1.509 GB, free: 137.3 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007804/1.458, allocations: 159.9 kB / 1.509 GB, free: 137.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007002/1.466, allocations: 2.644 MB / 1.512 GB, free: 134.4 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.557e-05/1.466, allocations: 7.938 kB / 1.512 GB, free: 134.4 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004587/1.466, allocations: 64 kB / 1.512 GB, free: 134.3 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/1.466, allocations: 95.2 kB / 1.512 GB, free: 134.2 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004424/1.471, allocations: 2.218 MB / 1.514 GB, free: 132 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01467/1.485, allocations: 10.9 MB / 1.525 GB, free: 120.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/1.487, allocations: 0.7583 MB / 1.526 GB, free: 119.4 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/1.487, allocations: 93.45 kB / 1.526 GB, free: 119.3 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/1.487, allocations: 42.94 kB / 1.526 GB, free: 119.3 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=46): time 2.795e-06/1.487, allocations: 0 / 1.526 GB, free: 119.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70): time 0.02361/1.51, allocations: 8.396 MB / 1.534 GB, free: 110.8 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/1.51, allocations: 85.67 kB / 1.534 GB, free: 110.7 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/1.512, allocations: 0.8664 MB / 1.535 GB, free: 109.8 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001904/1.512, allocations: 37.7 kB / 1.535 GB, free: 109.8 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005255/1.513, allocations: 0.7658 MB / 1.536 GB, free: 109 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003144/1.513, allocations: 252.6 kB / 1.536 GB, free: 108.8 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.835e-05/1.513, allocations: 20 kB / 1.536 GB, free: 108.7 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002036/1.513, allocations: 406.7 kB / 1.536 GB, free: 108.3 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/1.515, allocations: 0.795 MB / 1.537 GB, free: 107.5 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/1.516, allocations: 1.164 MB / 1.538 GB, free: 106.2 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/1.517, allocations: 0.9946 MB / 1.539 GB, free: 105.2 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/1.517, allocations: 4 kB / 1.539 GB, free: 105.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.007582/1.525, allocations: 3.514 MB / 1.543 GB, free: 101.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008068/1.526, allocations: 4.275 MB / 1.547 GB, free: 97.08 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/1.526, allocations: 11.94 kB / 1.547 GB, free: 97.07 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006401/1.532, allocations: 1.857 MB / 1.549 GB, free: 95.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/1.533, allocations: 231.6 kB / 1.549 GB, free: 94.98 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008531/1.542, allocations: 7.033 MB / 1.556 GB, free: 87.78 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/1.544, allocations: 191.7 kB / 1.556 GB, free: 87.59 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/1.544, allocations: 44 kB / 1.556 GB, free: 87.55 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/1.544, allocations: 4 kB / 1.556 GB, free: 87.55 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005951/1.55, allocations: 2.869 MB / 1.559 GB, free: 84.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.812e-05/1.55, allocations: 16.03 kB / 1.559 GB, free: 84.66 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004014/1.554, allocations: 1.157 MB / 1.56 GB, free: 83.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/1.555, allocations: 287.5 kB / 1.56 GB, free: 83.21 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007119/1.562, allocations: 5.848 MB / 1.566 GB, free: 77.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/1.564, allocations: 155.8 kB / 1.566 GB, free: 77.08 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/1.564, allocations: 51.94 kB / 1.566 GB, free: 77.03 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.00176/1.566, allocations: 0.8986 MB / 1.567 GB, free: 76.12 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/1.566, allocations: 86.97 kB / 1.567 GB, free: 76.04 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007296/1.573, allocations: 3.113 MB / 1.57 GB, free: 72.9 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/1.573, allocations: 12 kB / 1.57 GB, free: 72.89 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.573, allocations: 11.95 kB / 1.57 GB, free: 72.88 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.573, allocations: 3.984 kB / 1.57 GB, free: 72.87 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/1.584, allocations: 5.165 MB / 1.575 GB, free: 67.61 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/1.584, allocations: 0 / 1.575 GB, free: 67.61 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004256/1.585, allocations: 107.8 kB / 1.575 GB, free: 67.51 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006093/1.591, allocations: 1.784 MB / 1.577 GB, free: 65.72 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/1.591, allocations: 12 kB / 1.577 GB, free: 65.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/1.603, allocations: 10.01 MB / 1.587 GB, free: 55.43 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.603, allocations: 7.938 kB / 1.587 GB, free: 55.43 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007008/1.61, allocations: 3.106 MB / 1.59 GB, free: 52.23 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009628/1.611, allocations: 332 kB / 1.59 GB, free: 51.88 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/1.612, allocations: 19.98 kB / 1.59 GB, free: 51.86 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/1.613, allocations: 143.8 kB / 1.59 GB, free: 51.72 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/1.613, allocations: 68.42 kB / 1.59 GB, free: 51.66 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.969e-05/1.613, allocations: 20 kB / 1.59 GB, free: 51.64 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.001226/1.614, allocations: 0.6707 MB / 1.591 GB, free: 50.97 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/1.614, allocations: 3.938 kB / 1.591 GB, free: 50.97 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.003312/1.618, allocations: 0.7187 MB / 1.592 GB, free: 50.25 MB / 0.9167 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.007463/1.625, allocations: 4.299 MB / 1.596 GB, free: 45.86 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00639/1.632, allocations: 3.597 MB / 1.6 GB, free: 42.23 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.632, allocations: 8 kB / 1.6 GB, free: 42.23 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.002008/1.634, allocations: 1.353 MB / 1.601 GB, free: 40.85 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/1.635, allocations: 237.7 kB / 1.601 GB, free: 40.62 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0232/1.658, allocations: 18.3 MB / 1.619 GB, free: 21.95 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002413/1.661, allocations: 1.753 MB / 1.621 GB, free: 20.17 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001503/1.662, allocations: 0.5108 MB / 1.621 GB, free: 19.65 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009115/1.663, allocations: 0.5149 MB / 1.622 GB, free: 19.14 MB / 0.9167 GB Notification: Performance of SimCode: time 2.314e-06/1.663, allocations: 3.938 kB / 1.622 GB, free: 19.13 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07756/1.741, allocations: 40.42 MB / 1.661 GB, free: 11.1 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002628/1.741, allocations: 242.6 kB / 1.661 GB, free: 10.86 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/4.497, allocations: 6.875 kB / 1.661 GB, free: 10.86 MB / 0.948 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat does not exist to compare? outputFormat=mat