Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001915/0.001915, allocations: 175.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008569/0.0008569, allocations: 90.64 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1825/0.1825, allocations: 37.98 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.207e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1369, allocations: 56.32 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5684, allocations: 101.9 MB / 0.5556 GB, free: 8.828 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/0.5688, allocations: 95.92 kB / 0.5557 GB, free: 8.734 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06198/0.6308, allocations: 21.8 MB / 0.577 GB, free: 2.684 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.6309, allocations: 4 kB / 0.577 GB, free: 2.68 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.16e-05/0.6309, allocations: 16.75 kB / 0.577 GB, free: 2.664 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002135/0.6331, allocations: 1.176 MB / 0.5781 GB, free: 1.414 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.6331, allocations: 8.031 kB / 0.5782 GB, free: 1.406 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007716/0.6339, allocations: 158.6 kB / 0.5783 GB, free: 1.25 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.6368, allocations: 1.207 MB / 0.5795 GB, free: 0 / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.236e-05/0.6368, allocations: 36 kB / 0.5795 GB, free: 15.96 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.637, allocations: 55.94 kB / 0.5796 GB, free: 15.91 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001561/0.6385, allocations: 0.9996 MB / 0.5805 GB, free: 14.91 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.6402, allocations: 1.151 MB / 0.5817 GB, free: 13.7 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.6403, allocations: 7.844 kB / 0.5817 GB, free: 13.69 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.259e-05/0.6404, allocations: 4 kB / 0.5817 GB, free: 13.69 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.539e-05/0.6405, allocations: 57.98 kB / 0.5817 GB, free: 13.63 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/0.6461, allocations: 4.398 MB / 0.586 GB, free: 9.094 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.6473, allocations: 0.7735 MB / 0.5868 GB, free: 8.301 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007505/0.648, allocations: 0.6143 MB / 0.5874 GB, free: 7.684 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.851e-05/0.6481, allocations: 20.7 kB / 0.5874 GB, free: 7.664 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00111/0.6492, allocations: 0.8685 MB / 0.5883 GB, free: 6.762 MB / 427.1 MB Notification: Performance of pre-optimization done (n=126): time 4.659e-06/0.6492, allocations: 3.984 kB / 0.5883 GB, free: 6.758 MB / 427.1 MB Notification: Performance of matching and sorting (n=127): time 0.004188/0.6534, allocations: 2.762 MB / 0.591 GB, free: 3.938 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.6536, allocations: 246.9 kB / 0.5912 GB, free: 3.648 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004602/0.6541, allocations: 377 kB / 0.5916 GB, free: 3.277 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 7.498e-05/0.6541, allocations: 41.69 kB / 0.5916 GB, free: 3.23 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/0.6545, allocations: 392.2 kB / 0.592 GB, free: 2.84 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/0.6548, allocations: 366.9 kB / 0.5923 GB, free: 2.477 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-05/0.6549, allocations: 0 / 0.5923 GB, free: 2.477 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.6551, allocations: 394.7 kB / 0.5927 GB, free: 2.082 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007228/0.6558, allocations: 0.4953 MB / 0.5932 GB, free: 1.586 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009305/0.6567, allocations: 0.7348 MB / 0.5939 GB, free: 0.7656 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009037/0.6576, allocations: 0.5878 MB / 0.5945 GB, free: 184 kB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.6577, allocations: 0 / 0.5945 GB, free: 184 kB / 427.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0035/0.6612, allocations: 1.89 MB / 0.5963 GB, free: 14.27 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/0.6612, allocations: 59.41 kB / 0.5964 GB, free: 14.2 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002779/0.664, allocations: 1.578 MB / 0.5979 GB, free: 12.62 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/0.6659, allocations: 0.6525 MB / 0.5985 GB, free: 11.97 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.6664, allocations: 135.7 kB / 0.5987 GB, free: 11.84 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008148/0.6746, allocations: 5.669 MB / 0.6042 GB, free: 6.043 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007269/0.6754, allocations: 43.84 kB / 0.6043 GB, free: 6 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.588e-05/0.6754, allocations: 47.94 kB / 0.6043 GB, free: 5.953 MB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003405/0.6758, allocations: 235.1 kB / 0.6045 GB, free: 5.707 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001949/0.6778, allocations: 1.223 MB / 0.6057 GB, free: 4.477 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.6779, allocations: 79.06 kB / 0.6058 GB, free: 4.398 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/0.6799, allocations: 1.288 MB / 0.6071 GB, free: 3.098 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.728e-05/0.68, allocations: 28 kB / 0.6071 GB, free: 3.07 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.68, allocations: 0 / 0.6071 GB, free: 3.07 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.68, allocations: 11.97 kB / 0.6071 GB, free: 3.059 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.684, allocations: 2.533 MB / 0.6096 GB, free: 488 kB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.684, allocations: 4.094 kB / 0.6096 GB, free: 484 kB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.6851, allocations: 231.7 kB / 0.6098 GB, free: 252 kB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.265e-05/0.6851, allocations: 4 kB / 0.6098 GB, free: 248 kB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.846e-05/0.6852, allocations: 27.86 kB / 0.6098 GB, free: 220 kB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.6852, allocations: 4 kB / 0.6098 GB, free: 216 kB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.6852, allocations: 7.938 kB / 0.6098 GB, free: 208 kB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00306/0.6883, allocations: 2.188 MB / 0.612 GB, free: 13.96 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.6886, allocations: 144.2 kB / 0.6121 GB, free: 13.8 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.6887, allocations: 20.08 kB / 0.6121 GB, free: 13.78 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00046/0.6892, allocations: 35.94 kB / 0.6122 GB, free: 13.75 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/0.6895, allocations: 120.5 kB / 0.6123 GB, free: 13.63 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.6896, allocations: 36 kB / 0.6123 GB, free: 13.59 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0004468/0.69, allocations: 290.9 kB / 0.6126 GB, free: 13.31 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.69, allocations: 0 / 0.6126 GB, free: 13.31 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001361/0.6914, allocations: 279.9 kB / 0.6129 GB, free: 13.04 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004099/0.6955, allocations: 3.091 MB / 0.6159 GB, free: 9.887 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.6987, allocations: 1.772 MB / 0.6176 GB, free: 8.078 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.6987, allocations: 0 / 0.6176 GB, free: 8.078 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.6998, allocations: 0.8808 MB / 0.6185 GB, free: 7.172 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007376/0.7005, allocations: 99.89 kB / 0.6186 GB, free: 7.078 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.7044, allocations: 2.031 MB / 0.6205 GB, free: 4.996 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007612/0.7052, allocations: 1.125 MB / 0.6216 GB, free: 3.848 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0006618/0.7058, allocations: 238.7 kB / 0.6219 GB, free: 3.609 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004958/0.7063, allocations: 335.3 kB / 0.6222 GB, free: 3.281 MB / 459.1 MB Notification: Performance of SimCode: time 1.133e-06/0.7064, allocations: 0 / 0.6222 GB, free: 3.281 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04904/0.7554, allocations: 19.24 MB / 0.641 GB, free: 32 kB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.276/1.031, allocations: 136.5 kB / 0.6411 GB, free: 149.8 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/3.816, allocations: 2 kB / 0.6411 GB, free: 149.8 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat does not exist to compare? outputFormat=mat