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.33/2.33, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.0009876/0.0009876, allocations: 180.9 kB / 492.3 MB, free: 0.6016 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.515/1.515, allocations: 221.3 MB / 0.7871 GB, free: 12.94 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.00084/0.0008399, allocations: 83.5 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.585e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3062, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.315, allocations: 182.6 MB / 1.391 GB, free: 15.81 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/1.315, allocations: 95 kB / 1.391 GB, free: 15.79 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.5125/1.827, allocations: 211.5 MB / 1.597 GB, free: 10.9 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.044e-06/1.828, allocations: 0 / 1.597 GB, free: 10.9 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0004947/1.828, allocations: 135.9 kB / 1.598 GB, free: 10.77 MB / 1.01 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.01582/1.844, allocations: 4.454 MB / 1.602 GB, free: 6.246 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/1.844, allocations: 8.031 kB / 1.602 GB, free: 6.238 MB / 1.01 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003584/1.848, allocations: 0.8087 MB / 1.603 GB, free: 5.418 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008004/1.856, allocations: 1.047 MB / 1.604 GB, free: 4.363 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/1.866, allocations: 3.399 MB / 1.607 GB, free: 0.9062 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004702/1.866, allocations: 407.1 kB / 1.607 GB, free: 0.5078 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00258/1.869, allocations: 0.539 MB / 1.608 GB, free: 15.96 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02315/1.892, allocations: 8.492 MB / 1.616 GB, free: 7.043 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003252/1.893, allocations: 35.67 kB / 1.616 GB, free: 7.008 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001825/1.894, allocations: 240 kB / 1.617 GB, free: 6.773 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004021/1.895, allocations: 314.8 kB / 1.617 GB, free: 6.465 MB / 1.026 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01461/1.909, allocations: 6.039 MB / 1.623 GB, free: 428 kB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05515/1.965, allocations: 40.11 MB / 1.662 GB, free: 4.594 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004264/1.969, allocations: 3.062 MB / 1.665 GB, free: 1.398 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/1.972, allocations: 1.952 MB / 1.667 GB, free: 15.44 MB / 1.089 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001374/1.972, allocations: 18 kB / 1.667 GB, free: 15.42 MB / 1.089 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/1.972, allocations: 52.56 kB / 1.667 GB, free: 15.36 MB / 1.089 GB Notification: Performance of pre-optimization done (n=179): time 5.33e-06/1.972, allocations: 7.938 kB / 1.667 GB, free: 15.36 MB / 1.089 GB Notification: Performance of matching and sorting (n=182): time 0.01129/1.983, allocations: 6.031 MB / 1.673 GB, free: 9.297 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/1.984, allocations: 77.41 kB / 1.673 GB, free: 9.207 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/1.986, allocations: 1.287 MB / 1.674 GB, free: 7.875 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0001176/1.986, allocations: 57.7 kB / 1.674 GB, free: 7.812 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.001499/1.988, allocations: 2.23 MB / 1.676 GB, free: 5.551 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005848/1.988, allocations: 0.6316 MB / 1.677 GB, free: 4.91 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/1.988, allocations: 44 kB / 1.677 GB, free: 4.867 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001858/1.989, allocations: 390.3 kB / 1.677 GB, free: 4.48 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/1.99, allocations: 1.152 MB / 1.678 GB, free: 3.324 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002094/1.992, allocations: 1.827 MB / 1.68 GB, free: 1.191 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/1.994, allocations: 1.493 MB / 1.682 GB, free: 15.7 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/1.994, allocations: 11.88 kB / 1.682 GB, free: 15.68 MB / 1.104 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.0074/2.002, allocations: 4.5 MB / 1.686 GB, free: 11.16 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/2.002, allocations: 12 kB / 1.686 GB, free: 11.15 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/2.002, allocations: 27.98 kB / 1.686 GB, free: 11.12 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0037/2.006, allocations: 1.577 MB / 1.688 GB, free: 9.539 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/2.007, allocations: 355.3 kB / 1.688 GB, free: 9.191 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02164/2.028, allocations: 16.99 MB / 1.705 GB, free: 7.66 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/2.031, allocations: 115.9 kB / 1.705 GB, free: 7.547 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004119/2.031, allocations: 96 kB / 1.705 GB, free: 7.453 MB / 1.12 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 () * 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.0006075/2.032, allocations: 232.4 kB / 1.705 GB, free: 7.219 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006406/2.032, allocations: 225.3 kB / 1.705 GB, free: 6.996 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007505/2.04, allocations: 4.044 MB / 1.709 GB, free: 2.922 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/2.04, allocations: 20 kB / 1.709 GB, free: 2.902 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.289e-05/2.04, allocations: 16 kB / 1.709 GB, free: 2.887 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/2.04, allocations: 11.95 kB / 1.709 GB, free: 2.875 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01888/2.059, allocations: 9.376 MB / 1.718 GB, free: 9.246 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/2.059, allocations: 4 kB / 1.718 GB, free: 9.242 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008501/2.06, allocations: 180 kB / 1.719 GB, free: 9.066 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003388/2.063, allocations: 1.345 MB / 1.72 GB, free: 7.711 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/2.063, allocations: 36 kB / 1.72 GB, free: 7.676 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/2.086, allocations: 15.88 MB / 1.735 GB, free: 7.273 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.536e-05/2.086, allocations: 19.88 kB / 1.735 GB, free: 7.254 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008301/2.094, allocations: 4.312 MB / 1.74 GB, free: 2.691 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/2.096, allocations: 0.5256 MB / 1.74 GB, free: 2.145 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006422/2.096, allocations: 35.95 kB / 1.74 GB, free: 2.109 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/2.098, allocations: 87.89 kB / 1.74 GB, free: 2.023 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005317/2.098, allocations: 165.7 kB / 1.74 GB, free: 1.859 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/2.098, allocations: 47.94 kB / 1.741 GB, free: 1.812 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001854/2.1, allocations: 0.974 MB / 1.741 GB, free: 0.8086 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/2.1, allocations: 0 / 1.741 GB, free: 0.8086 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.7267/2.827, allocations: 1.035 MB / 1.742 GB, free: 284 MB / 1.151 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 () * 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.008246/2.835, allocations: 6.059 MB / 1.748 GB, free: 281.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006844/2.842, allocations: 4.182 MB / 1.752 GB, free: 281 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.585e-06/2.842, allocations: 4.625 kB / 1.752 GB, free: 281 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004515/2.847, allocations: 2.614 MB / 1.755 GB, free: 280.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/2.85, allocations: 0.6725 MB / 1.756 GB, free: 280.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01744/2.868, allocations: 8.274 MB / 1.764 GB, free: 278.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005445/2.873, allocations: 3.668 MB / 1.767 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002349/2.875, allocations: 461 kB / 1.768 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/2.878, allocations: 1.792 MB / 1.77 GB, free: 277.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.253e-06/2.878, allocations: 1.875 kB / 1.77 GB, free: 277.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1152/2.993, allocations: 71.83 MB / 1.84 GB, free: 275.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/2.993, allocations: 203.1 kB / 1.84 GB, free: 275.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.46/6.453, allocations: 0 / 1.84 GB, free: 275.4 MB / 1.151 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