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 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.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.001232/0.001232, allocations: 111.6 kB / 17.06 MB, free: 6.102 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.001209/0.00121, allocations: 199 kB / 18 MB, free: 5.18 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.346/1.346, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1774/0.1774, allocations: 37.98 MB / 309.2 MB, free: 5.949 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.001307/0.001307, allocations: 71.91 kB / 431.4 MB, free: 16.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 55.24 MB / 486.6 MB, free: 8.961 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007885/0.1096, allocations: 6.496 MB / 493.1 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.1123, allocations: 1.353 MB / 494.5 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005081/0.1128, allocations: 27.81 kB / 494.5 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004295/0.1132, allocations: 126.9 kB / 494.6 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.1145, allocations: 429.8 kB / 495 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.1151, allocations: 231.6 kB / 495.3 MB, free: 276 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.1165, allocations: 1.122 MB / 496.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005131/0.1171, allocations: 409.7 kB / 496.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008035/0.1179, allocations: 0.4903 MB / 497.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008679/0.1187, allocations: 0.5255 MB / 497.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.1189, allocations: 72 kB / 497.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.1191, allocations: 64 kB / 497.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.1194, allocations: 335.2 kB / 498.3 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006307/0.1201, allocations: 406 kB / 498.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1211, allocations: 0.911 MB / 499.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1211, allocations: 4 kB / 499.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1211, allocations: 0 / 499.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.32e-05/0.1212, allocations: 0 / 499.6 MB, free: 11.95 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002193/0.1234, allocations: 1.152 MB / 0.489 GB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1234, allocations: 15.89 kB / 0.489 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.1236, allocations: 110.7 kB / 0.4891 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.1237, allocations: 88 kB / 0.4892 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.1248, allocations: 0.6117 MB / 0.4898 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/0.1249, allocations: 116.7 kB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.125, allocations: 67.98 kB / 0.49 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.1265, allocations: 0.8614 MB / 0.4908 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.1265, allocations: 0 / 0.4908 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.428e-05/0.1266, allocations: 28 kB / 0.4908 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.1267, allocations: 41.22 kB / 0.4909 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.1279, allocations: 0.6179 MB / 0.4915 GB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003611/0.1315, allocations: 2.735 MB / 0.4941 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.1331, allocations: 0.9081 MB / 0.495 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/0.1338, allocations: 318.2 kB / 0.4953 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1338, allocations: 4.328 kB / 0.4953 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006581/0.1345, allocations: 342.8 kB / 0.4957 GB, free: 3.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 3.516e-06/0.1345, allocations: 4 kB / 0.4957 GB, free: 3.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.004168/0.1387, allocations: 1.982 MB / 0.4976 GB, free: 1.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.1387, allocations: 110.8 kB / 0.4977 GB, free: 1.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006472/0.1394, allocations: 0.5105 MB / 0.4982 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.1395, allocations: 37.7 kB / 0.4982 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000282/0.1398, allocations: 351.8 kB / 0.4986 GB, free: 420 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.1399, allocations: 142.1 kB / 0.4987 GB, free: 276 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.1401, allocations: 122.1 kB / 0.4988 GB, free: 144 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1403, allocations: 370.8 kB / 0.4992 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003494/0.1407, allocations: 229 kB / 0.4994 GB, free: 15.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000452/0.1411, allocations: 386.2 kB / 0.4998 GB, free: 15.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000774/0.1419, allocations: 0.6249 MB / 0.5004 GB, free: 14.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.1419, allocations: 4 kB / 0.5004 GB, free: 14.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00125/0.1432, allocations: 0.8904 MB / 0.5013 GB, free: 13.47 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.996e-05/0.1433, allocations: 53.78 kB / 0.5013 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1433, allocations: 4 kB / 0.5013 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/0.1436, allocations: 97.58 kB / 0.5014 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.144, allocations: 107.8 kB / 0.5015 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/0.1471, allocations: 3.255 MB / 0.5047 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.1475, allocations: 39.92 kB / 0.5047 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.559e-05/0.1476, allocations: 39.97 kB / 0.5048 GB, free: 9.586 MB / 398.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.0004687/0.1481, allocations: 274.7 kB / 0.505 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-05/0.1482, allocations: 59.25 kB / 0.5051 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.1497, allocations: 0.7081 MB / 0.5058 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1497, allocations: 7.938 kB / 0.5058 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1497, allocations: 4 kB / 0.5058 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1498, allocations: 0 / 0.5058 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002457/0.1522, allocations: 1.536 MB / 0.5073 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1522, allocations: 0 / 0.5073 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.1525, allocations: 63.89 kB / 0.5073 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002879/0.1528, allocations: 97.56 kB / 0.5074 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.1529, allocations: 15.98 kB / 0.5075 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002552/0.1554, allocations: 3.255 MB / 0.5106 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.1555, allocations: 3.938 kB / 0.5106 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.1575, allocations: 1.068 MB / 0.5117 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002399/0.1577, allocations: 176.3 kB / 0.5118 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1578, allocations: 27.98 kB / 0.5119 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/0.1582, allocations: 39.94 kB / 0.5119 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.1583, allocations: 35.91 kB / 0.5119 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.1584, allocations: 15.98 kB / 0.512 GB, free: 1.723 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004753/0.1589, allocations: 358.8 kB / 0.5123 GB, free: 1.375 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1589, allocations: 0 / 0.5123 GB, free: 1.375 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007806/0.1597, allocations: 148 kB / 0.5124 GB, free: 1.23 MB / 398.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.002489/0.1622, allocations: 1.64 MB / 0.514 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.1637, allocations: 0.8985 MB / 0.5149 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1637, allocations: 3.938 kB / 0.5149 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008885/0.1646, allocations: 0.494 MB / 0.5154 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008679/0.1655, allocations: 162.7 kB / 0.5156 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008042/0.1736, allocations: 6.068 MB / 0.5215 GB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000607/0.1742, allocations: 0.976 MB / 0.5224 GB, free: 6.547 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003218/0.1746, allocations: 108.9 kB / 0.5225 GB, free: 6.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.1749, allocations: 223.4 kB / 0.5228 GB, free: 6.223 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1749, allocations: 3.938 kB / 0.5228 GB, free: 6.219 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.253/0.4279, allocations: 13.44 MB / 0.5359 GB, free: 52.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.891/10.32, allocations: 1.031 kB / 0.5359 GB, free: 52.39 MB / 414.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)