Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",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.001036/0.001036, allocations: 108 kB / 17.06 MB, free: 6.02 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.001127/0.001127, allocations: 199 kB / 18 MB, free: 5.098 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.424/1.424, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1797/0.1797, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001413/0.001413, allocations: 67.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09297, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007605/0.1006, allocations: 6.247 MB / 492.9 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002292/0.1029, allocations: 1.466 MB / 494.3 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.1032, allocations: 19.88 kB / 494.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004904/0.1037, allocations: 142.9 kB / 494.5 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008258/0.1046, allocations: 418 kB / 494.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00044/0.1051, allocations: 187.7 kB / 495.1 MB, free: 344 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.1062, allocations: 1.09 MB / 496.2 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004389/0.1067, allocations: 360.6 kB / 496.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006602/0.1073, allocations: 466.2 kB / 497 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007533/0.1081, allocations: 0.5373 MB / 497.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.782e-05/0.1082, allocations: 64 kB / 497.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.1083, allocations: 68 kB / 497.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002613/0.1086, allocations: 307.2 kB / 497.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003093/0.1089, allocations: 358.4 kB / 498.3 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007339/0.1097, allocations: 0.845 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1097, allocations: 0 / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1097, allocations: 0 / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.1097, allocations: 0 / 499.1 MB, free: 12.27 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001851/0.1116, allocations: 1.004 MB / 0.4884 GB, free: 11.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1116, allocations: 15.89 kB / 0.4884 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.1117, allocations: 106.6 kB / 0.4885 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1118, allocations: 72.09 kB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.113, allocations: 0.5692 MB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.1131, allocations: 120.6 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.184e-05/0.1132, allocations: 55.91 kB / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.1145, allocations: 0.7733 MB / 0.4901 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.1145, allocations: 3.938 kB / 0.4901 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.1146, allocations: 20 kB / 0.4901 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001162/0.1147, allocations: 40.97 kB / 0.4901 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.1161, allocations: 0.7181 MB / 0.4908 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003771/0.1198, allocations: 2.597 MB / 0.4934 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.1214, allocations: 0.801 MB / 0.4942 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006552/0.1221, allocations: 395.4 kB / 0.4945 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.1221, allocations: 12.42 kB / 0.4945 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.1222, allocations: 42.94 kB / 0.4946 GB, free: 4.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.1222, allocations: 0 / 0.4946 GB, free: 4.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=51): time 0.004104/0.1263, allocations: 2.143 MB / 0.4967 GB, free: 2.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.1263, allocations: 85.58 kB / 0.4968 GB, free: 2.285 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/0.1267, allocations: 397.9 kB / 0.4971 GB, free: 1.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.1268, allocations: 33.7 kB / 0.4972 GB, free: 1.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.127, allocations: 288.5 kB / 0.4974 GB, free: 1.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1271, allocations: 173.5 kB / 0.4976 GB, free: 1.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.1272, allocations: 102.2 kB / 0.4977 GB, free: 1.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1274, allocations: 358.8 kB / 0.4981 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.1279, allocations: 280.9 kB / 0.4983 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005852/0.1285, allocations: 377.1 kB / 0.4987 GB, free: 244 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.1297, allocations: 0.6499 MB / 0.4993 GB, free: 15.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1297, allocations: 0 / 0.4993 GB, free: 15.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001499/0.1312, allocations: 0.8718 MB / 0.5002 GB, free: 14.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.1312, allocations: 4 kB / 0.5002 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.1312, allocations: 12.28 kB / 0.5002 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000254/0.1315, allocations: 81.66 kB / 0.5003 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/0.133, allocations: 303.5 kB / 0.5005 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005739/0.1388, allocations: 6.536 MB / 0.5069 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005294/0.1393, allocations: 43.94 kB / 0.507 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.1394, allocations: 16 kB / 0.507 GB, free: 7.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003701/0.1398, allocations: 245.7 kB / 0.5072 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.818e-05/0.1399, allocations: 43.44 kB / 0.5073 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.1413, allocations: 0.8319 MB / 0.5081 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.1414, allocations: 4 kB / 0.5081 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1414, allocations: 7.984 kB / 0.5081 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1414, allocations: 0 / 0.5081 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.1441, allocations: 1.685 MB / 0.5097 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.1441, allocations: 4 kB / 0.5097 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/0.1458, allocations: 323.7 kB / 0.51 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002693/0.1461, allocations: 93.53 kB / 0.5101 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/0.1462, allocations: 12 kB / 0.5101 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002214/0.1484, allocations: 3.153 MB / 0.5132 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1484, allocations: 7.969 kB / 0.5132 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.1505, allocations: 1.318 MB / 0.5145 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.1507, allocations: 132.5 kB / 0.5146 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.059e-05/0.1507, allocations: 15.94 kB / 0.5147 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.1511, allocations: 35.95 kB / 0.5147 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.1513, allocations: 43.94 kB / 0.5147 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.1513, allocations: 19.98 kB / 0.5148 GB, free: 14.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002948/0.1516, allocations: 279.1 kB / 0.515 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.1516, allocations: 4 kB / 0.515 GB, free: 14.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006569/0.1523, allocations: 151.9 kB / 0.5152 GB, free: 14.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,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.002351/0.1546, allocations: 1.857 MB / 0.517 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002793/0.1574, allocations: 1.089 MB / 0.5181 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1575, allocations: 0 / 0.5181 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.1595, allocations: 0.8023 MB / 0.5188 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.1603, allocations: 149.7 kB / 0.519 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008753/0.1691, allocations: 5.859 MB / 0.5247 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.1697, allocations: 0.9408 MB / 0.5256 GB, free: 3.109 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003856/0.1701, allocations: 124.7 kB / 0.5257 GB, free: 2.984 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002865/0.1704, allocations: 199.4 kB / 0.5259 GB, free: 2.789 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1704, allocations: 4 kB / 0.5259 GB, free: 2.785 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2323/0.4027, allocations: 13.2 MB / 0.5388 GB, free: 50.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.83, allocations: 9.5 kB / 0.5388 GB, free: 50.95 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)