Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001593/0.001593, allocations: 188.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001134/0.001134, allocations: 86.88 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2708/0.2708, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006684/0.0006687, allocations: 8 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1135, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.007118/0.1207, allocations: 4.233 MB / 483.4 MB, free: 13.67 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002851/0.1236, allocations: 1.135 MB / 484.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003272/0.124, allocations: 27.81 kB / 484.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.1242, allocations: 51.59 kB / 484.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007937/0.125, allocations: 215.4 kB / 484.8 MB, free: 12.24 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.1254, allocations: 107.8 kB / 484.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004733/0.1259, allocations: 255.4 kB / 485.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.1262, allocations: 109.7 kB / 485.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003546/0.1266, allocations: 155.4 kB / 485.4 MB, free: 11.63 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004322/0.127, allocations: 171.5 kB / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.1271, allocations: 16 kB / 485.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.1272, allocations: 12 kB / 485.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.1274, allocations: 123.7 kB / 485.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.1275, allocations: 85.52 kB / 485.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004083/0.1279, allocations: 275.3 kB / 486.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.128, allocations: 3.938 kB / 486.1 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.128, allocations: 0 / 486.1 MB, free: 10.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.128, allocations: 3.938 kB / 486.1 MB, free: 10.95 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00148/0.1295, allocations: 0.6048 MB / 486.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.1295, allocations: 8.031 kB / 486.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.1297, allocations: 66.5 kB / 486.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.288e-05/0.1298, allocations: 35.53 kB / 486.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.1305, allocations: 354.6 kB / 487.1 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.1306, allocations: 16.56 kB / 487.2 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.939e-05/0.1307, allocations: 32 kB / 487.2 MB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007837/0.1315, allocations: 344.7 kB / 487.5 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.1315, allocations: 0 / 487.5 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.1316, allocations: 12 kB / 487.5 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001782/0.1317, allocations: 32.48 kB / 487.6 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006529/0.1324, allocations: 246 kB / 487.8 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.135, allocations: 1.366 MB / 489.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/0.1355, allocations: 169 kB / 489.3 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.1356, allocations: 8.062 kB / 489.3 MB, free: 7.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.1356, allocations: 38.52 kB / 489.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.056e-06/0.1356, allocations: 0 / 489.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.002062/0.1377, allocations: 0.7672 MB / 490.2 MB, free: 6.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.1378, allocations: 85.23 kB / 490.2 MB, free: 6.461 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.1382, allocations: 288.6 kB / 490.5 MB, free: 6.164 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.1383, allocations: 29.7 kB / 490.5 MB, free: 6.129 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.1385, allocations: 277.9 kB / 490.8 MB, free: 5.855 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.552e-05/0.1386, allocations: 55.2 kB / 490.9 MB, free: 5.801 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.19e-05/0.1386, allocations: 4 kB / 490.9 MB, free: 5.797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1388, allocations: 322.8 kB / 491.2 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.139, allocations: 67.95 kB / 491.3 MB, free: 5.406 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/0.1393, allocations: 168.8 kB / 491.4 MB, free: 5.195 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/0.1395, allocations: 91.97 kB / 491.5 MB, free: 5.105 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1395, allocations: 4 kB / 491.5 MB, free: 5.102 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008115/0.1404, allocations: 309.8 kB / 491.8 MB, free: 4.789 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.1404, allocations: 8 kB / 491.8 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.1404, allocations: 0 / 491.8 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003065/0.1407, allocations: 57.25 kB / 491.9 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.1411, allocations: 51.92 kB / 491.9 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.143, allocations: 1.503 MB / 493.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.1433, allocations: 4 kB / 493.4 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.1433, allocations: 16 kB / 493.5 MB, free: 3.016 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002853/0.1436, allocations: 177.6 kB / 493.6 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.267e-05/0.1437, allocations: 27.72 kB / 493.7 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000689/0.1444, allocations: 244.3 kB / 493.9 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1444, allocations: 4 kB / 493.9 MB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1445, allocations: 8 kB / 493.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1445, allocations: 3.984 kB / 493.9 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.1458, allocations: 0.6288 MB / 494.5 MB, free: 1.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1458, allocations: 0 / 494.5 MB, free: 1.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.146, allocations: 27.98 kB / 494.6 MB, free: 1.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000336/0.1464, allocations: 60.72 kB / 494.6 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.1464, allocations: 15.98 kB / 494.6 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00194/0.1484, allocations: 1.507 MB / 496.1 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.1484, allocations: 4.031 kB / 496.2 MB, free: 100 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008914/0.1493, allocations: 421 kB / 496.6 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1494, allocations: 100.9 kB / 496.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.593e-05/0.1495, allocations: 12 kB / 496.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.1497, allocations: 7.984 kB / 496.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.788e-05/0.1498, allocations: 15.92 kB / 496.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.1498, allocations: 4 kB / 496.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003106/0.1501, allocations: 215 kB / 496.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1502, allocations: 0 / 496.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005683/0.1507, allocations: 72 kB / 497 MB, free: 15.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.152, allocations: 1.105 MB / 498.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008825/0.1529, allocations: 293.5 kB / 498.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.1529, allocations: 0 / 498.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006452/0.1536, allocations: 210.6 kB / 498.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000678/0.1543, allocations: 57.61 kB / 498.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.1595, allocations: 4.12 MB / 0.491 GB, free: 9.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005857/0.1602, allocations: 0.8143 MB / 0.4918 GB, free: 8.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.1604, allocations: 103.4 kB / 0.4919 GB, free: 8.309 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1604, allocations: 0 / 0.4919 GB, free: 8.309 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.703/2.863, allocations: 6.282 MB / 0.498 GB, free: 2.016 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)