Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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.ACLine_L_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",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.253/2.253, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001074/0.001074, allocations: 169.2 kB / 498.1 MB, free: 5.758 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.537/1.537, allocations: 223.2 MB / 0.7948 GB, free: 18.88 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.0008855/0.0008855, allocations: 102.8 kB / 0.9346 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003691, allocations: 11.69 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2982, allocations: 142.4 MB / 1.223 GB, free: 89.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2274/0.5257, allocations: 182.7 MB / 1.401 GB, free: 2.574 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.5261, allocations: 95.94 kB / 1.401 GB, free: 2.48 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.097/1.623, allocations: 212.4 MB / 1.609 GB, free: 15.76 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.447e-06/1.623, allocations: 0 / 1.609 GB, free: 15.76 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0005267/1.624, allocations: 131.9 kB / 1.609 GB, free: 15.63 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02202/1.646, allocations: 4.749 MB / 1.614 GB, free: 10.81 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/1.646, allocations: 8.031 kB / 1.614 GB, free: 10.8 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005081/1.651, allocations: 0.8204 MB / 1.614 GB, free: 9.973 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008796/1.66, allocations: 1.055 MB / 1.615 GB, free: 8.91 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/1.672, allocations: 3.414 MB / 1.619 GB, free: 5.438 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005458/1.673, allocations: 407.1 kB / 1.619 GB, free: 5.039 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003098/1.676, allocations: 0.5389 MB / 1.62 GB, free: 4.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03033/1.706, allocations: 8.589 MB / 1.628 GB, free: 11.48 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004115/1.707, allocations: 27.69 kB / 1.628 GB, free: 11.46 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002787/1.709, allocations: 244 kB / 1.628 GB, free: 11.22 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005355/1.71, allocations: 310.8 kB / 1.629 GB, free: 10.91 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/1.728, allocations: 6.151 MB / 1.635 GB, free: 4.754 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06134/1.79, allocations: 40.11 MB / 1.674 GB, free: 8.926 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004654/1.794, allocations: 3.08 MB / 1.677 GB, free: 5.703 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000162/1.794, allocations: 22 kB / 1.677 GB, free: 5.684 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/1.794, allocations: 48.56 kB / 1.677 GB, free: 5.629 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=179): time 4.338e-06/1.794, allocations: 4 kB / 1.677 GB, free: 5.625 MB / 0.9792 GB Notification: Performance of matching and sorting (n=182): time 0.02754/1.822, allocations: 9.865 MB / 1.686 GB, free: 11.66 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/1.822, allocations: 77.41 kB / 1.687 GB, free: 11.57 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/1.825, allocations: 1.302 MB / 1.688 GB, free: 10.23 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.000265/1.825, allocations: 61.64 kB / 1.688 GB, free: 10.16 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001932/1.827, allocations: 2.23 MB / 1.69 GB, free: 7.902 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009033/1.828, allocations: 0.6355 MB / 1.691 GB, free: 7.258 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/1.828, allocations: 44 kB / 1.691 GB, free: 7.215 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.000272/1.829, allocations: 394.3 kB / 1.691 GB, free: 6.824 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/1.831, allocations: 1.168 MB / 1.692 GB, free: 5.652 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002519/1.833, allocations: 1.847 MB / 1.694 GB, free: 3.496 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/1.836, allocations: 1.505 MB / 1.696 GB, free: 1.988 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.48e-05/1.836, allocations: 4 kB / 1.696 GB, free: 1.984 MB / 0.9948 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.008849/1.845, allocations: 4.539 MB / 1.7 GB, free: 13.42 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/1.845, allocations: 17.09 kB / 1.7 GB, free: 13.41 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.15e-05/1.845, allocations: 20.88 kB / 1.7 GB, free: 13.39 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004062/1.849, allocations: 1.593 MB / 1.702 GB, free: 11.79 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/1.85, allocations: 351.4 kB / 1.702 GB, free: 11.45 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02451/1.875, allocations: 17.69 MB / 1.719 GB, free: 9.219 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/1.877, allocations: 120.3 kB / 1.719 GB, free: 9.102 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004898/1.878, allocations: 92 kB / 1.719 GB, free: 9.012 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * 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 (174): * Single equations (assignments): 170 * 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: 4 {(12,30.6%) 26,(6,66.7%) 24,(6,66.7%) 16,(6,66.7%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004897/1.883, allocations: 1.897 MB / 1.721 GB, free: 7.105 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000764/1.883, allocations: 225.3 kB / 1.721 GB, free: 6.883 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008117/1.891, allocations: 4.083 MB / 1.725 GB, free: 2.773 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/1.891, allocations: 19.94 kB / 1.725 GB, free: 2.754 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.537e-05/1.892, allocations: 20 kB / 1.725 GB, free: 2.734 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/1.892, allocations: 7.969 kB / 1.725 GB, free: 2.727 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0218/1.913, allocations: 9.411 MB / 1.735 GB, free: 9.07 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/1.913, allocations: 4 kB / 1.735 GB, free: 9.066 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008857/1.914, allocations: 184.3 kB / 1.735 GB, free: 8.887 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003549/1.918, allocations: 1.354 MB / 1.736 GB, free: 7.523 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000184/1.918, allocations: 36 kB / 1.736 GB, free: 7.488 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02193/1.94, allocations: 16.53 MB / 1.752 GB, free: 6.43 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/1.94, allocations: 7.953 kB / 1.752 GB, free: 6.422 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007393/1.947, allocations: 4.34 MB / 1.757 GB, free: 1.836 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/1.949, allocations: 0.5295 MB / 1.757 GB, free: 1.285 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002916/1.95, allocations: 43.94 kB / 1.757 GB, free: 1.242 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009324/1.951, allocations: 91.89 kB / 1.757 GB, free: 1.152 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005139/1.951, allocations: 157.7 kB / 1.757 GB, free: 0.9961 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/1.951, allocations: 48 kB / 1.757 GB, free: 0.9492 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.001505/1.953, allocations: 0.9851 MB / 1.758 GB, free: 15.94 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.242e-06/1.953, allocations: 4 kB / 1.758 GB, free: 15.94 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.003771/1.957, allocations: 1.035 MB / 1.759 GB, free: 14.9 MB / 1.073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (85): * Single equations (assignments): 81 * 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: 4 {(6,66.7%) 16,(6,66.7%) 16,(6,66.7%) 24,(6,66.7%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007541/1.964, allocations: 6.092 MB / 1.765 GB, free: 8.645 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.007154/1.971, allocations: 4.269 MB / 1.77 GB, free: 4.32 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/1.971, allocations: 0 / 1.77 GB, free: 4.32 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 0.004412/1.976, allocations: 2.659 MB / 1.772 GB, free: 1.613 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003702/1.98, allocations: 0.6776 MB / 1.773 GB, free: 0.9414 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0499/2.029, allocations: 37.34 MB / 1.809 GB, free: 10.14 MB / 1.12 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005521/2.035, allocations: 3.664 MB / 1.813 GB, free: 6.445 MB / 1.12 GB Notification: Performance of simCode: alias equations: time 0.001853/2.037, allocations: 463.8 kB / 1.813 GB, free: 5.988 MB / 1.12 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002131/2.039, allocations: 1.788 MB / 1.815 GB, free: 4.199 MB / 1.12 GB Notification: Performance of SimCode: time 1.052e-06/2.039, allocations: 0 / 1.815 GB, free: 4.199 MB / 1.12 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7388/2.778, allocations: 71.03 MB / 1.884 GB, free: 265.1 MB / 1.12 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/2.778, allocations: 223.5 kB / 1.885 GB, free: 264.9 MB / 1.12 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.709/6.487, allocations: 0 / 1.885 GB, free: 264.9 MB / 1.12 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat does not exist to compare? outputFormat=mat