Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_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.22/2.22, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.001218/0.001218, allocations: 180.9 kB / 492.3 MB, free: 0.6172 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.463/1.463, allocations: 221.3 MB / 0.7872 GB, free: 12.84 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.0008971/0.0008971, allocations: 100.6 kB / 0.9267 GB, free: 13.92 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.098e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2653, allocations: 142.4 MB / 1.213 GB, free: 38.37 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8721/1.137, allocations: 197.7 MB / 1.406 GB, free: 2.195 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/1.138, allocations: 94.31 kB / 1.406 GB, free: 2.145 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 1.673/2.811, allocations: 384.6 MB / 1.781 GB, free: 232.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.365e-06/2.811, allocations: 7.438 kB / 1.781 GB, free: 232.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0008791/2.812, allocations: 167.1 kB / 1.781 GB, free: 232.7 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02725/2.839, allocations: 5.54 MB / 1.787 GB, free: 230.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.869e-05/2.84, allocations: 9.094 kB / 1.787 GB, free: 230.5 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005644/2.845, allocations: 0.8885 MB / 1.788 GB, free: 230.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01628/2.861, allocations: 1.77 MB / 1.789 GB, free: 230 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01836/2.88, allocations: 5.051 MB / 1.794 GB, free: 229.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00102/2.881, allocations: 456.1 kB / 1.795 GB, free: 229.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003922/2.885, allocations: 0.5936 MB / 1.795 GB, free: 229.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03064/2.916, allocations: 9.873 MB / 1.805 GB, free: 227.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004465/2.916, allocations: 29.73 kB / 1.805 GB, free: 227.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003066/2.919, allocations: 271.6 kB / 1.805 GB, free: 227.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005642/2.92, allocations: 382.2 kB / 1.806 GB, free: 227.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01959/2.939, allocations: 7.696 MB / 1.813 GB, free: 227.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06846/3.008, allocations: 46.36 MB / 1.858 GB, free: 201 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006011/3.014, allocations: 4.15 MB / 1.863 GB, free: 200.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005441/3.019, allocations: 3.57 MB / 1.866 GB, free: 200.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005037/3.02, allocations: 39.81 kB / 1.866 GB, free: 200.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/3.02, allocations: 68.09 kB / 1.866 GB, free: 200.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=353): time 9.638e-06/3.02, allocations: 0 / 1.866 GB, free: 200.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=578): time 0.4359/3.456, allocations: 98.51 MB / 1.962 GB, free: 185.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/3.456, allocations: 118.4 kB / 1.962 GB, free: 185 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005236/3.461, allocations: 2.121 MB / 1.965 GB, free: 183.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001645/3.463, allocations: 117.7 kB / 1.965 GB, free: 183 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.002144/3.465, allocations: 2.705 MB / 1.967 GB, free: 180.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.003482/3.469, allocations: 1.954 MB / 1.969 GB, free: 178.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001284/3.47, allocations: 112 kB / 1.969 GB, free: 178.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000485/3.47, allocations: 0.5359 MB / 1.97 GB, free: 178.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006335/3.477, allocations: 3.722 MB / 1.973 GB, free: 174.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006883/3.484, allocations: 4.836 MB / 1.978 GB, free: 170 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006738/3.49, allocations: 4.539 MB / 1.983 GB, free: 166 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-05/3.49, allocations: 8 kB / 1.983 GB, free: 166 MB / 1.151 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03614/3.527, allocations: 15.87 MB / 1.998 GB, free: 153.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/3.527, allocations: 16 kB / 1.998 GB, free: 153.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.426e-05/3.527, allocations: 32 kB / 1.998 GB, free: 153.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02392/3.551, allocations: 7.7 MB / 2.006 GB, free: 147 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/3.553, allocations: 0.5577 MB / 2.006 GB, free: 146.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0885/3.642, allocations: 67.25 MB / 2.072 GB, free: 85.75 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005944/3.648, allocations: 246.9 kB / 2.072 GB, free: 85.57 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001498/3.65, allocations: 200 kB / 2.072 GB, free: 85.37 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 137 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (286): * Single equations (assignments): 275 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(5,84.0%) 17,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(6,77.8%) 40,(6,77.8%) 72,(14,57.1%) 72,(14,51.0%) 72,(8,70.3%) 70,(6,77.8%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002232/3.652, allocations: 396.9 kB / 2.073 GB, free: 85.02 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001487/3.653, allocations: 477.5 kB / 2.073 GB, free: 84.55 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03108/3.684, allocations: 15.79 MB / 2.089 GB, free: 71.91 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.512e-05/3.684, allocations: 56 kB / 2.089 GB, free: 71.86 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001176/3.685, allocations: 75.95 kB / 2.089 GB, free: 71.79 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.045e-05/3.685, allocations: 29.3 kB / 2.089 GB, free: 71.79 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04409/3.729, allocations: 23.88 MB / 2.112 GB, free: 52.51 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-05/3.729, allocations: 8 kB / 2.112 GB, free: 52.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/3.731, allocations: 320.7 kB / 2.112 GB, free: 52.25 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01936/3.75, allocations: 6.839 MB / 2.119 GB, free: 46.86 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008909/3.751, allocations: 107.8 kB / 2.119 GB, free: 46.76 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.9334/4.684, allocations: 64.12 MB / 2.182 GB, free: 219.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-05/4.685, allocations: 12.69 kB / 2.182 GB, free: 219.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04987/4.734, allocations: 20.79 MB / 2.202 GB, free: 217.2 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004844/4.739, allocations: 1.256 MB / 2.203 GB, free: 217.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001667/4.741, allocations: 114.2 kB / 2.203 GB, free: 217.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004503/4.745, allocations: 231.8 kB / 2.204 GB, free: 217.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002695/4.748, allocations: 0.521 MB / 2.204 GB, free: 217.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004724/4.749, allocations: 139.6 kB / 2.204 GB, free: 217.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.003257/4.752, allocations: 1.589 MB / 2.206 GB, free: 217 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.9e-07/4.752, allocations: 4.188 kB / 2.206 GB, free: 217 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01144/4.763, allocations: 2.342 MB / 2.208 GB, free: 217 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 131 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(6,77.8%) 40,(7,71.4%) 71,(14,57.1%) 72,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(5,84.0%) 17,(6,77.8%) 40,(8,70.3%) 70,(14,51.0%) 72} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0492/4.813, allocations: 23.21 MB / 2.231 GB, free: 212.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.02829/4.841, allocations: 13.57 MB / 2.244 GB, free: 211 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.07e-05/4.841, allocations: 0 / 2.244 GB, free: 211 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.02889/4.87, allocations: 8.88 MB / 2.253 GB, free: 209.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01059/4.881, allocations: 1.103 MB / 2.254 GB, free: 209.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04326/4.924, allocations: 14.9 MB / 2.268 GB, free: 206.7 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/4.934, allocations: 5.018 MB / 2.273 GB, free: 205.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003731/4.938, allocations: 0.7419 MB / 2.274 GB, free: 205.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003397/4.942, allocations: 2.59 MB / 2.276 GB, free: 205.7 MB / 1.167 GB Notification: Performance of SimCode: time 1.122e-06/4.942, allocations: 0 / 2.276 GB, free: 205.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.287/5.229, allocations: 176.5 MB / 2.449 GB, free: 147.1 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/5.229, allocations: 209.4 kB / 2.449 GB, free: 146.9 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.79/12.02, allocations: 2.969 kB / 2.449 GB, free: 146.9 MB / 1.167 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat does not exist to compare? outputFormat=mat