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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009318/0.0009318, allocations: 92.41 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009429/0.000943, allocations: 181 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.4 MB / 223.4 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3436/0.3436, allocations: 38.05 MB / 309.7 MB, free: 9.023 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005286/0.0005287, allocations: 12 kB / 376.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 56.34 MB / 432.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.00508/0.119, allocations: 4.433 MB / 437.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.1215, allocations: 1.61 MB / 439 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.1218, allocations: 31.81 kB / 439 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.122, allocations: 71.5 kB / 439.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005842/0.1226, allocations: 223.3 kB / 439.3 MB, free: 364 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006051/0.1232, allocations: 239.5 kB / 439.5 MB, free: 124 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.1236, allocations: 295.8 kB / 439.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008556/0.1244, allocations: 0.5358 MB / 440.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1247, allocations: 183.3 kB / 440.5 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003465/0.1251, allocations: 219.3 kB / 440.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.306e-05/0.1251, allocations: 16 kB / 440.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.1254, allocations: 87.86 kB / 440.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002125/0.1256, allocations: 191.5 kB / 441 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1257, allocations: 109.5 kB / 441.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004566/0.1262, allocations: 450.9 kB / 441.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1262, allocations: 0 / 441.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.1262, allocations: 7.938 kB / 441.6 MB, free: 14.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.1262, allocations: 0 / 441.6 MB, free: 14.01 MB / 382.1 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.001215/0.1274, allocations: 0.6763 MB / 442.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.1275, allocations: 12.03 kB / 442.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.1276, allocations: 86.52 kB / 442.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005981/0.1282, allocations: 103.2 kB / 442.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006158/0.1288, allocations: 383 kB / 442.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.1289, allocations: 37 kB / 442.9 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.129, allocations: 55.94 kB / 442.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008294/0.1299, allocations: 0.6294 MB / 443.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.1299, allocations: 7.938 kB / 443.6 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.13, allocations: 23.94 kB / 443.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/0.1301, allocations: 28.98 kB / 443.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000699/0.1308, allocations: 479.5 kB / 444.1 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003284/0.1341, allocations: 3.014 MB / 447.1 MB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.1344, allocations: 181 kB / 447.3 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.1344, allocations: 12.05 kB / 447.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1345, allocations: 34.91 kB / 447.3 MB, free: 7.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.1345, allocations: 0 / 447.3 MB, free: 7.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001358/0.1358, allocations: 0.84 MB / 448.2 MB, free: 7.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.1359, allocations: 89 kB / 448.2 MB, free: 6.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.1363, allocations: 341.5 kB / 448.6 MB, free: 6.586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1363, allocations: 29.7 kB / 448.6 MB, free: 6.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.1365, allocations: 295 kB / 448.9 MB, free: 6.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.737e-05/0.1366, allocations: 82.84 kB / 449 MB, free: 6.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.1366, allocations: 8 kB / 449 MB, free: 6.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1368, allocations: 350.9 kB / 449.3 MB, free: 5.816 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.137, allocations: 124.8 kB / 449.4 MB, free: 5.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.1373, allocations: 323 kB / 449.8 MB, free: 5.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.1376, allocations: 191.9 kB / 449.9 MB, free: 5.102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1376, allocations: 8 kB / 450 MB, free: 5.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009835/0.1386, allocations: 0.549 MB / 450.5 MB, free: 4.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.1386, allocations: 8 kB / 450.5 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004877/0.1391, allocations: 280.6 kB / 450.8 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000355/0.1395, allocations: 81.42 kB / 450.9 MB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.1398, allocations: 99.81 kB / 451 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.1414, allocations: 1.628 MB / 452.6 MB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.1416, allocations: 23.91 kB / 452.6 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.1417, allocations: 20 kB / 452.6 MB, free: 2.262 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.142, allocations: 217.6 kB / 452.8 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.142, allocations: 31.58 kB / 452.9 MB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004631/0.1425, allocations: 292.8 kB / 453.2 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1425, allocations: 0 / 453.2 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.1425, allocations: 4 kB / 453.2 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1425, allocations: 0 / 453.2 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.1437, allocations: 0.7979 MB / 454 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1437, allocations: 4.062 kB / 454 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.144, allocations: 55.91 kB / 454 MB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.144, allocations: 4 kB / 454 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.144, allocations: 7.984 kB / 454 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.144, allocations: 0 / 454 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.144, allocations: 0 / 454 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005436/0.1446, allocations: 0.5029 MB / 454.5 MB, free: 240 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.1447, allocations: 112.6 kB / 454.7 MB, free: 108 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.1447, allocations: 4 kB / 454.7 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.1449, allocations: 8.031 kB / 454.7 MB, free: 96 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.1449, allocations: 19.94 kB / 454.7 MB, free: 76 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.1449, allocations: 12 kB / 454.7 MB, free: 64 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2076/0.3525, allocations: 230.4 kB / 454.9 MB, free: 51.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.3526, allocations: 0 / 454.9 MB, free: 51.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007575/0.3533, allocations: 93.94 kB / 455 MB, free: 51.2 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000807/0.3541, allocations: 1.254 MB / 456.3 MB, free: 50.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006806/0.3548, allocations: 436.7 kB / 456.7 MB, free: 50.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3549, allocations: 0 / 456.7 MB, free: 50.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.355, allocations: 116.3 kB / 456.8 MB, free: 50.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.3554, allocations: 59.97 kB / 456.9 MB, free: 50.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003617/0.359, allocations: 7.178 MB / 464 MB, free: 44.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3593, allocations: 0.8739 MB / 464.9 MB, free: 43.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002838/0.3596, allocations: 110 kB / 465 MB, free: 43.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.3598, allocations: 147.5 kB / 465.2 MB, free: 43.86 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3598, allocations: 0.9844 kB / 465.2 MB, free: 43.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.3763, allocations: 6.963 MB / 472.1 MB, free: 43.28 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.3766, allocations: 199 kB / 472.3 MB, free: 43.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.114, allocations: 0 / 472.3 MB, free: 43.04 MB / 382.1 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) Environment - environmentSimulation: