Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.001181/0.001181, allocations: 109 kB / 16.92 MB, free: 5.742 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.001194/0.001194, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.278/1.278, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1728/0.1728, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 68.56 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 58.06 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007394/0.1122, allocations: 6.491 MB / 463.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.1144, allocations: 1.317 MB / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002714/0.1147, allocations: 23.88 kB / 464.8 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003057/0.115, allocations: 131 kB / 464.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008531/0.1159, allocations: 429.9 kB / 465.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.1164, allocations: 223.6 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009796/0.1174, allocations: 1.129 MB / 466.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004604/0.1179, allocations: 401.8 kB / 467.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005211/0.1184, allocations: 490.1 kB / 467.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006382/0.119, allocations: 0.5256 MB / 468.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.1191, allocations: 64 kB / 468.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1193, allocations: 64 kB / 468.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002982/0.1196, allocations: 331.1 kB / 468.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003553/0.12, allocations: 406.1 kB / 468.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007365/0.1207, allocations: 0.8994 MB / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1207, allocations: 0 / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1207, allocations: 0 / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.537e-06/0.1207, allocations: 0 / 469.8 MB, free: 11.02 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001767/0.1225, allocations: 1.152 MB / 471 MB, free: 9.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.1225, allocations: 11.89 kB / 471 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.1227, allocations: 114.7 kB / 471.1 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.1228, allocations: 84 kB / 471.2 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007578/0.1236, allocations: 0.5766 MB / 471.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.1237, allocations: 116.6 kB / 471.9 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.64e-05/0.1238, allocations: 67.98 kB / 471.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.1252, allocations: 0.8614 MB / 472.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.1252, allocations: 3.938 kB / 472.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-05/0.1253, allocations: 24 kB / 472.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.1254, allocations: 45.28 kB / 472.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1265, allocations: 0.6179 MB / 473.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003339/0.1299, allocations: 2.751 MB / 476.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.1315, allocations: 0.9037 MB / 477.2 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007337/0.1323, allocations: 322.2 kB / 477.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.1323, allocations: 8.328 kB / 477.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006741/0.133, allocations: 350.5 kB / 477.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.214e-06/0.133, allocations: 3.938 kB / 477.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004044/0.1371, allocations: 1.983 MB / 479.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.1371, allocations: 118.8 kB / 479.9 MB, free: 408 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00054/0.1377, allocations: 0.5067 MB / 480.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.1377, allocations: 33.7 kB / 480.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.138, allocations: 363.6 kB / 480.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1381, allocations: 142.1 kB / 481 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.1383, allocations: 118.1 kB / 481.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1384, allocations: 370.8 kB / 481.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/0.1387, allocations: 229.1 kB / 481.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.1392, allocations: 390.2 kB / 482 MB, free: 14.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00072/0.1399, allocations: 0.621 MB / 482.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1399, allocations: 4 kB / 482.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001227/0.1411, allocations: 0.894 MB / 483.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.1412, allocations: 45.69 kB / 483.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1412, allocations: 8 kB / 483.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003392/0.1416, allocations: 93.98 kB / 483.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.142, allocations: 107.8 kB / 483.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/0.1452, allocations: 3.255 MB / 487.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005293/0.1458, allocations: 27.98 kB / 487.1 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-05/0.1459, allocations: 51.91 kB / 487.1 MB, free: 8.664 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004666/0.1463, allocations: 277.7 kB / 487.4 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.053e-05/0.1464, allocations: 59.25 kB / 487.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.1479, allocations: 0.7042 MB / 488.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1479, allocations: 4 kB / 488.2 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1479, allocations: 4 kB / 488.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.1479, allocations: 0 / 488.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.1506, allocations: 1.543 MB / 489.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1506, allocations: 0 / 489.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.1509, allocations: 59.91 kB / 489.8 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.1512, allocations: 101.7 kB / 489.9 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.1512, allocations: 15.98 kB / 489.9 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/0.1536, allocations: 3.251 MB / 493.1 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1536, allocations: 0 / 493.1 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.1556, allocations: 1.063 MB / 494.2 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002339/0.1559, allocations: 176.3 kB / 494.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.553e-05/0.156, allocations: 31.98 kB / 494.4 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/0.1564, allocations: 39.94 kB / 494.4 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.884e-05/0.1565, allocations: 35.91 kB / 494.5 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.1565, allocations: 15.92 kB / 494.5 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003728/0.1569, allocations: 362.8 kB / 494.9 MB, free: 464 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1569, allocations: 0 / 494.9 MB, free: 464 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006485/0.1575, allocations: 151.9 kB / 495 MB, free: 312 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002265/0.1598, allocations: 1.644 MB / 496.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.1614, allocations: 0.9532 MB / 497.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1615, allocations: 4.062 kB / 497.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008782/0.1623, allocations: 0.5048 MB / 498.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007805/0.1631, allocations: 142.5 kB / 498.2 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007304/0.1704, allocations: 6.18 MB / 0.4926 GB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.171, allocations: 0.976 MB / 0.4936 GB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003281/0.1713, allocations: 101 kB / 0.4937 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.1716, allocations: 227.3 kB / 0.4939 GB, free: 5.141 MB / 382.1 MB Notification: Performance of SimCode: time 4.9e-07/0.1716, allocations: 0 / 0.4939 GB, free: 5.141 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03848/0.2101, allocations: 13.04 MB / 0.5066 GB, free: 8.262 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.129/9.339, allocations: 15.47 kB / 0.5066 GB, free: 8.25 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)