Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_cpp_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.0008986/0.0008988, allocations: 171.9 kB / 16.07 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007128/0.0007128, allocations: 84.8 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1632/0.1632, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003506, allocations: 12 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.232, allocations: 56.33 MB / 479.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.005748/0.2378, allocations: 6.624 MB / 486.4 MB, free: 4.613 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003468/0.2413, allocations: 2.259 MB / 488.6 MB, free: 3.012 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005033/0.2418, allocations: 37.25 kB / 488.7 MB, free: 2.996 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004655/0.2423, allocations: 156.5 kB / 488.8 MB, free: 2.918 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.2436, allocations: 0.543 MB / 489.4 MB, free: 2.648 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000923/0.2446, allocations: 356.5 kB / 489.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001583/0.2462, allocations: 1.376 MB / 491.1 MB, free: 1.98 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.2476, allocations: 0.885 MB / 492 MB, free: 1.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008149/0.2484, allocations: 426.2 kB / 492.4 MB, free: 1.316 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009281/0.2494, allocations: 0.6258 MB / 493 MB, free: 1.125 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.2495, allocations: 41.66 kB / 493 MB, free: 1.125 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.2505, allocations: 0.5004 MB / 493.5 MB, free: 1.008 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004832/0.251, allocations: 428.2 kB / 494 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004671/0.2515, allocations: 482 kB / 494.4 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.2527, allocations: 1.013 MB / 495.4 MB, free: 408 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2527, allocations: 4 kB / 495.5 MB, free: 404 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2527, allocations: 0 / 495.5 MB, free: 404 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.2528, allocations: 1.156 kB / 495.5 MB, free: 404 kB / 314.7 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.002172/0.2549, allocations: 1.207 MB / 496.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.255, allocations: 9.469 kB / 496.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002002/0.2552, allocations: 144.4 kB / 496.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007746/0.256, allocations: 155.6 kB / 497 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009951/0.257, allocations: 0.6092 MB / 497.6 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.077e-05/0.2571, allocations: 75.73 kB / 497.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.2573, allocations: 101.8 kB / 497.7 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.2594, allocations: 1.306 MB / 499.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.2594, allocations: 1.562 kB / 499.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-05/0.2595, allocations: 33.59 kB / 499.1 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/0.2597, allocations: 67.34 kB / 499.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.2615, allocations: 1.173 MB / 0.4886 GB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006027/0.2675, allocations: 4.682 MB / 0.4932 GB, free: 9.934 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.269, allocations: 1.29 MB / 0.4944 GB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008405/0.2698, allocations: 0.6319 MB / 0.495 GB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.769e-05/0.2699, allocations: 14.53 kB / 0.4951 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.2711, allocations: 0.8959 MB / 0.4959 GB, free: 8.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 2.765e-06/0.2711, allocations: 0 / 0.4959 GB, free: 8.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.005174/0.2763, allocations: 3.568 MB / 0.4994 GB, free: 5.988 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.2764, allocations: 238.6 kB / 0.4996 GB, free: 5.703 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005207/0.2769, allocations: 493.8 kB / 0.5001 GB, free: 5.207 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.158e-05/0.277, allocations: 61.92 kB / 0.5002 GB, free: 5.141 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.2773, allocations: 400.1 kB / 0.5006 GB, free: 4.742 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.2775, allocations: 371 kB / 0.5009 GB, free: 4.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/0.2776, allocations: 24 kB / 0.5009 GB, free: 4.352 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2777, allocations: 394.7 kB / 0.5013 GB, free: 3.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007042/0.2785, allocations: 0.5108 MB / 0.5018 GB, free: 3.449 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008723/0.2793, allocations: 0.7778 MB / 0.5026 GB, free: 2.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/0.2809, allocations: 1.391 MB / 0.5039 GB, free: 1.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.281, allocations: 4 kB / 0.5039 GB, free: 1.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003557/0.2845, allocations: 2.043 MB / 0.5059 GB, free: 15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.517e-05/0.2846, allocations: 67.39 kB / 0.506 GB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00277/0.2874, allocations: 1.634 MB / 0.5076 GB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001868/0.2893, allocations: 0.6488 MB / 0.5082 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.2897, allocations: 143.7 kB / 0.5084 GB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008271/0.298, allocations: 5.887 MB / 0.5141 GB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007406/0.2988, allocations: 63.8 kB / 0.5142 GB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.869e-05/0.2989, allocations: 47.98 kB / 0.5142 GB, free: 6.352 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 2 * 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.0006304/0.2995, allocations: 446 kB / 0.5146 GB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.2997, allocations: 79.06 kB / 0.5147 GB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.3017, allocations: 1.411 MB / 0.5161 GB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/0.3018, allocations: 24 kB / 0.5161 GB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.3018, allocations: 7.875 kB / 0.5161 GB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.3018, allocations: 7.984 kB / 0.5161 GB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003876/0.3057, allocations: 2.763 MB / 0.5188 GB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.3057, allocations: 3.984 kB / 0.5188 GB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.3067, allocations: 235.8 kB / 0.5191 GB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.3067, allocations: 4 kB / 0.5191 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-05/0.3068, allocations: 20 kB / 0.5191 GB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.3068, allocations: 7.984 kB / 0.5191 GB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3068, allocations: 4 kB / 0.5191 GB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.3098, allocations: 2.273 MB / 0.5213 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.31, allocations: 148 kB / 0.5215 GB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.3101, allocations: 32.03 kB / 0.5215 GB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.3105, allocations: 51.94 kB / 0.5215 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.3108, allocations: 108.8 kB / 0.5216 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.017e-05/0.3109, allocations: 35.98 kB / 0.5217 GB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003714/0.3113, allocations: 338.8 kB / 0.522 GB, free: 14.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3113, allocations: 0 / 0.522 GB, free: 14.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009702/0.3122, allocations: 312 kB / 0.5223 GB, free: 13.89 MB / 362.7 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_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.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,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * 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.003303/0.3155, allocations: 2.896 MB / 0.5251 GB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002877/0.3184, allocations: 1.845 MB / 0.5269 GB, free: 9.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3185, allocations: 0 / 0.5269 GB, free: 9.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.3195, allocations: 0.8869 MB / 0.5278 GB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008524/0.3204, allocations: 126.2 kB / 0.5279 GB, free: 8.027 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.3307, allocations: 6.943 MB / 0.5347 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006959/0.3315, allocations: 1.101 MB / 0.5358 GB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005176/0.332, allocations: 339.3 kB / 0.5361 GB, free: 15.4 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.332, allocations: 0 / 0.5361 GB, free: 15.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.45/4.782, allocations: 16.19 MB / 0.5519 GB, free: 15.16 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)