Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.001066/0.001066, allocations: 111.2 kB / 16.92 MB, free: 5.766 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.001149/0.001149, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.296/1.296, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1775/0.1775, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 64.8 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1202, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.006327/0.1266, allocations: 4.333 MB / 461.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.1282, allocations: 0.9467 MB / 462.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002527/0.1285, allocations: 15.88 kB / 462.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.1288, allocations: 55.5 kB / 462.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007552/0.1296, allocations: 246.8 kB / 462.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.1299, allocations: 95.81 kB / 462.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006499/0.1305, allocations: 0.4906 MB / 463.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.1308, allocations: 151.9 kB / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003847/0.1312, allocations: 219 kB / 463.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004897/0.1317, allocations: 259.2 kB / 463.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.334e-05/0.1317, allocations: 28 kB / 463.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.385e-05/0.1318, allocations: 24 kB / 463.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.132, allocations: 151.5 kB / 464 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.1322, allocations: 171.2 kB / 464.1 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003872/0.1326, allocations: 374.6 kB / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1326, allocations: 0 / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1327, allocations: 0 / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.1327, allocations: 0 / 464.5 MB, free: 396 kB / 334.1 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.001362/0.134, allocations: 0.6516 MB / 465.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.1341, allocations: 11.89 kB / 465.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.117e-05/0.1342, allocations: 66.72 kB / 465.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1343, allocations: 36.47 kB / 465.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006339/0.135, allocations: 359.8 kB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.135, allocations: 20.5 kB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.052e-05/0.135, allocations: 31.98 kB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.1356, allocations: 352.7 kB / 466 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.1357, allocations: 0 / 466 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.1357, allocations: 12 kB / 466 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.1358, allocations: 24.53 kB / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.1363, allocations: 242 kB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.1381, allocations: 1.374 MB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.1384, allocations: 173 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.1386, allocations: 97.73 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.1387, allocations: 4 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.1387, allocations: 34.56 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.1387, allocations: 0 / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001345/0.14, allocations: 0.76 MB / 468.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.1401, allocations: 85.03 kB / 468.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.1404, allocations: 300.4 kB / 469.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.1405, allocations: 29.7 kB / 469.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1406, allocations: 219.6 kB / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.1407, allocations: 47.27 kB / 469.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.803e-05/0.1408, allocations: 53.61 kB / 469.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1409, allocations: 346.8 kB / 469.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.141, allocations: 71.89 kB / 469.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.1412, allocations: 173.3 kB / 470 MB, free: 10.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.1415, allocations: 256.6 kB / 470.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1415, allocations: 0 / 470.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004755/0.142, allocations: 321.1 kB / 470.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1421, allocations: 4 kB / 470.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1421, allocations: 7.938 kB / 470.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.1423, allocations: 53.27 kB / 470.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.1424, allocations: 51.91 kB / 470.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.1438, allocations: 1.605 MB / 472.3 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.1439, allocations: 8 kB / 472.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.1439, allocations: 8 kB / 472.3 MB, free: 7.949 MB / 350.1 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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001674/0.1441, allocations: 181.8 kB / 472.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.269e-05/0.1442, allocations: 31.62 kB / 472.5 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000387/0.1446, allocations: 240.2 kB / 472.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1446, allocations: 0 / 472.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.1446, allocations: 0 / 472.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1446, allocations: 4 kB / 472.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.1454, allocations: 0.6443 MB / 473.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1454, allocations: 0 / 473.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.1455, allocations: 16 kB / 473.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.1457, allocations: 64.78 kB / 473.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.1457, allocations: 3.938 kB / 473.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.147, allocations: 1.609 MB / 475.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.147, allocations: 4.156 kB / 475.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004863/0.1475, allocations: 405.3 kB / 475.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.1476, allocations: 100.8 kB / 475.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.1476, allocations: 8 kB / 475.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.1477, allocations: 15.92 kB / 475.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.325e-05/0.1478, allocations: 15.98 kB / 475.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.1478, allocations: 4 kB / 475.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001866/0.148, allocations: 211.1 kB / 475.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.148, allocations: 0 / 475.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.1484, allocations: 68 kB / 475.9 MB, free: 4.082 MB / 350.1 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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007369/0.1491, allocations: 0.9353 MB / 476.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005639/0.1497, allocations: 323.2 kB / 477.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1497, allocations: 4 kB / 477.2 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003241/0.15, allocations: 194.6 kB / 477.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.1505, allocations: 74.89 kB / 477.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.1539, allocations: 3.054 MB / 480.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1543, allocations: 0.8065 MB / 481.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001549/0.1544, allocations: 46.95 kB / 481.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.1546, allocations: 103.4 kB / 481.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1546, allocations: 0 / 481.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.1797, allocations: 5.968 MB / 487.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.92/9.1, allocations: 11.73 kB / 487.4 MB, free: 8.422 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)