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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001407/0.001407, allocations: 117.5 kB / 16.63 MB, free: 6.812 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.001592/0.001592, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1719/0.1719, allocations: 38.02 MB / 329.4 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 61.69 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1165, allocations: 58.07 MB / 456.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.007361/0.1239, allocations: 5.224 MB / 461.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.1269, allocations: 1.648 MB / 463.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004943/0.1274, allocations: 31.81 kB / 463.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.1285, allocations: 358.7 kB / 463.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006515/0.1292, allocations: 215.1 kB / 463.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007195/0.1299, allocations: 231.6 kB / 464.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007615/0.1307, allocations: 0.5534 MB / 464.7 MB, free: 24 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006115/0.1313, allocations: 370.4 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004819/0.1318, allocations: 255 kB / 465.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005916/0.1324, allocations: 338.9 kB / 465.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.419e-05/0.1325, allocations: 36 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003195/0.1328, allocations: 135.8 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.1331, allocations: 223.5 kB / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003179/0.1334, allocations: 254.7 kB / 466.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006664/0.1341, allocations: 0.588 MB / 466.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1341, allocations: 0 / 466.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1341, allocations: 0 / 466.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.1341, allocations: 4 kB / 466.9 MB, free: 13.86 MB / 350.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.001496/0.1356, allocations: 0.7737 MB / 467.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1357, allocations: 15.88 kB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.1358, allocations: 82.72 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006073/0.1364, allocations: 88.31 kB / 467.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006057/0.137, allocations: 404 kB / 468.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.1371, allocations: 29.38 kB / 468.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.1372, allocations: 59.84 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009067/0.1381, allocations: 0.6411 MB / 468.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1382, allocations: 0 / 468.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.266e-05/0.1382, allocations: 20 kB / 469 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.1383, allocations: 28.98 kB / 469 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007399/0.1391, allocations: 483.5 kB / 469.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.1424, allocations: 3.034 MB / 472.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.1427, allocations: 181.1 kB / 472.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.1428, allocations: 104.5 kB / 472.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.1429, allocations: 8 kB / 472.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1429, allocations: 34.5 kB / 472.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.492e-06/0.1429, allocations: 4 kB / 472.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001346/0.1443, allocations: 0.8385 MB / 473.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.1443, allocations: 81.06 kB / 473.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.1447, allocations: 345.5 kB / 474.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.1447, allocations: 33.7 kB / 474.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.1449, allocations: 298.9 kB / 474.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.183e-05/0.145, allocations: 83.03 kB / 474.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.1451, allocations: 86.03 kB / 474.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1452, allocations: 346.8 kB / 474.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1454, allocations: 124.8 kB / 475 MB, free: 5.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.1457, allocations: 338.9 kB / 475.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.1462, allocations: 0.489 MB / 475.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.1462, allocations: 7.938 kB / 475.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009498/0.1472, allocations: 0.5483 MB / 476.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1472, allocations: 8 kB / 476.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004747/0.1477, allocations: 278.9 kB / 476.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000335/0.148, allocations: 89.28 kB / 476.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.1483, allocations: 95.83 kB / 476.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.1499, allocations: 1.731 MB / 478.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/0.1501, allocations: 19.98 kB / 478.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.1502, allocations: 27.94 kB / 478.6 MB, free: 1.258 MB / 350.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.1504, allocations: 213.6 kB / 478.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.1505, allocations: 35.69 kB / 478.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004494/0.1509, allocations: 296.6 kB / 479.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1509, allocations: 3.938 kB / 479.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1509, allocations: 4 kB / 479.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1509, allocations: 0 / 479.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.152, allocations: 0.7869 MB / 480 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1521, allocations: 7.938 kB / 480 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.1523, allocations: 51.91 kB / 480 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1523, allocations: 4 kB / 480 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.1524, allocations: 8 kB / 480 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.1524, allocations: 7.922 kB / 480 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1524, allocations: 0 / 480 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000527/0.1529, allocations: 482.4 kB / 480.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.153, allocations: 108.8 kB / 480.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.1531, allocations: 15.88 kB / 480.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.1532, allocations: 11.98 kB / 480.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.1533, allocations: 7.984 kB / 480.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.1533, allocations: 8 kB / 480.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.1535, allocations: 239.2 kB / 480.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1535, allocations: 0 / 480.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004449/0.154, allocations: 96 kB / 481 MB, free: 14.79 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008091/0.1548, allocations: 1.007 MB / 482 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007259/0.1555, allocations: 464 kB / 482.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1555, allocations: 4.062 kB / 482.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.1557, allocations: 118.5 kB / 482.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.1562, allocations: 72.83 kB / 482.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004846/0.161, allocations: 4.17 MB / 486.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.1615, allocations: 0.8701 MB / 487.7 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003001/0.1618, allocations: 115.2 kB / 487.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.1621, allocations: 147.4 kB / 487.9 MB, free: 7.488 MB / 366.1 MB Notification: Performance of SimCode: time 2.064e-06/0.1621, allocations: 0 / 487.9 MB, free: 7.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04352/0.2056, allocations: 7.182 MB / 495.1 MB, free: 452 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.2058, allocations: 227.1 kB / 495.3 MB, free: 184 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.193, allocations: 3.938 kB / 495.3 MB, free: 180 kB / 366.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/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)