Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001162/0.001162, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.675/1.675, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.0018/0.0018, allocations: 124.3 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1633/0.1633, allocations: 37.93 MB / 330.9 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.423e-05/2.418e-05, allocations: 4 kB / 390.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3616, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.5003, allocations: 95.19 MB / 0.5262 GB, free: 2.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5006, allocations: 87.95 kB / 0.5263 GB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3605/0.8611, allocations: 12.47 MB / 0.5385 GB, free: 89.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.8611, allocations: 0 / 0.5385 GB, free: 89.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.026e-05/0.8612, allocations: 7.469 kB / 0.5385 GB, free: 89.33 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001397/0.8626, allocations: 0.6702 MB / 0.5392 GB, free: 88.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.8627, allocations: 11.48 kB / 0.5392 GB, free: 88.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006974/0.8634, allocations: 101 kB / 0.5393 GB, free: 88.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00206/0.8654, allocations: 0.8363 MB / 0.5401 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.8655, allocations: 11.88 kB / 0.5401 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.674e-05/0.8656, allocations: 27.58 kB / 0.5401 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006481/0.8663, allocations: 357.6 kB / 0.5405 GB, free: 87.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007457/0.867, allocations: 0.565 MB / 0.541 GB, free: 87.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.867, allocations: 11.78 kB / 0.541 GB, free: 87.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.388e-05/0.8671, allocations: 7.984 kB / 0.541 GB, free: 87.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.486e-05/0.8672, allocations: 23.91 kB / 0.5411 GB, free: 87.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002864/0.87, allocations: 2.833 MB / 0.5438 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.8703, allocations: 186.7 kB / 0.544 GB, free: 84.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.8705, allocations: 129.7 kB / 0.5441 GB, free: 84.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.8705, allocations: 0 / 0.5441 GB, free: 84.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.8706, allocations: 38.56 kB / 0.5442 GB, free: 84.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.615e-06/0.8706, allocations: 7.984 kB / 0.5442 GB, free: 84.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001387/0.872, allocations: 0.8228 MB / 0.545 GB, free: 83.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.872, allocations: 85.28 kB / 0.5451 GB, free: 83.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.8723, allocations: 270 kB / 0.5453 GB, free: 83.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.8723, allocations: 29.7 kB / 0.5454 GB, free: 83.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.8725, allocations: 291.1 kB / 0.5456 GB, free: 83.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.061e-05/0.8725, allocations: 94.59 kB / 0.5457 GB, free: 83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.771e-05/0.8726, allocations: 4.031 kB / 0.5457 GB, free: 82.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.8727, allocations: 350.8 kB / 0.5461 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.8728, allocations: 128.8 kB / 0.5462 GB, free: 82.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.8731, allocations: 312.4 kB / 0.5465 GB, free: 82.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.8733, allocations: 205.8 kB / 0.5467 GB, free: 81.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8734, allocations: 0 / 0.5467 GB, free: 81.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008747/0.8742, allocations: 0.536 MB / 0.5472 GB, free: 81.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.8743, allocations: 8 kB / 0.5472 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004972/0.8748, allocations: 312.5 kB / 0.5475 GB, free: 81.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000302/0.8751, allocations: 76.78 kB / 0.5476 GB, free: 80.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.8754, allocations: 99.78 kB / 0.5477 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.8766, allocations: 1.526 MB / 0.5492 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.8769, allocations: 15.98 kB / 0.5492 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.8769, allocations: 20 kB / 0.5492 GB, free: 79.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 1 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.554e-05/0.877, allocations: 120.9 kB / 0.5493 GB, free: 79.09 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000404/0.8775, allocations: 295.1 kB / 0.5496 GB, free: 78.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.053e-05/0.8775, allocations: 31.53 kB / 0.5496 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004969/0.878, allocations: 336.5 kB / 0.5499 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.878, allocations: 4 kB / 0.5499 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.8781, allocations: 4.031 kB / 0.55 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.813e-05/0.8781, allocations: 3.984 kB / 0.55 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.8793, allocations: 0.7862 MB / 0.5507 GB, free: 77.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.8793, allocations: 3.984 kB / 0.5507 GB, free: 77.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.8796, allocations: 59.91 kB / 0.5508 GB, free: 77.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.8796, allocations: 4.141 kB / 0.5508 GB, free: 77.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.8796, allocations: 12.05 kB / 0.5508 GB, free: 77.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.8797, allocations: 0 / 0.5508 GB, free: 77.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.8797, allocations: 0 / 0.5508 GB, free: 77.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005854/0.8803, allocations: 0.5806 MB / 0.5514 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.431e-05/0.8803, allocations: 108.6 kB / 0.5515 GB, free: 76.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.8804, allocations: 0 / 0.5515 GB, free: 76.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.8806, allocations: 16.02 kB / 0.5515 GB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.8806, allocations: 23.88 kB / 0.5515 GB, free: 76.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.8806, allocations: 4 kB / 0.5515 GB, free: 76.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001619/0.8808, allocations: 204.6 kB / 0.5517 GB, free: 76.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8808, allocations: 0 / 0.5517 GB, free: 76.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005127/0.8813, allocations: 111.9 kB / 0.5518 GB, free: 76.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009569/0.8823, allocations: 1.32 MB / 0.5531 GB, free: 75.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006319/0.8829, allocations: 458.7 kB / 0.5535 GB, free: 74.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.883, allocations: 0 / 0.5535 GB, free: 74.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.8831, allocations: 136.2 kB / 0.5537 GB, free: 74.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.8835, allocations: 63.14 kB / 0.5537 GB, free: 74.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.8851, allocations: 0.881 MB / 0.5546 GB, free: 73.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.8854, allocations: 0.8734 MB / 0.5554 GB, free: 72.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002957/0.8857, allocations: 115.2 kB / 0.5556 GB, free: 72.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.8859, allocations: 147.4 kB / 0.5557 GB, free: 72.31 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.8859, allocations: 0 / 0.5557 GB, free: 72.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.9164, allocations: 6.677 MB / 0.5622 GB, free: 65.63 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001627/0.9166, allocations: 140.9 kB / 0.5623 GB, free: 65.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/3.041, allocations: 0 / 0.5623 GB, free: 65.43 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)