Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001519/0.00152, allocations: 111.8 kB / 17.06 MB, free: 6.09 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.001241/0.001241, allocations: 199 kB / 18 MB, free: 5.168 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.373/1.373, 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.1874/0.1874, 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.001442/0.001442, allocations: 64.47 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09954, allocations: 55.25 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.006613/0.1062, allocations: 4.549 MB / 491.2 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002657/0.1089, allocations: 1.606 MB / 492.8 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003482/0.1093, allocations: 11.94 kB / 492.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000995/0.1103, allocations: 290.7 kB / 493.1 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008/0.1112, allocations: 270.7 kB / 493.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007701/0.1119, allocations: 255.4 kB / 493.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008515/0.1128, allocations: 0.6118 MB / 494.2 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004656/0.1133, allocations: 252.3 kB / 494.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00058/0.1139, allocations: 270.9 kB / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.1145, allocations: 319 kB / 495 MB, free: 404 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-05/0.1145, allocations: 36 kB / 495 MB, free: 368 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003082/0.1149, allocations: 151.7 kB / 495.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002137/0.1151, allocations: 219.5 kB / 495.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002614/0.1154, allocations: 246.7 kB / 495.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006305/0.116, allocations: 0.5956 MB / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.341e-06/0.116, allocations: 4 kB / 496.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.116, allocations: 0 / 496.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.116, allocations: 0 / 496.3 MB, free: 15.15 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001405/0.1174, allocations: 0.7621 MB / 497 MB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1175, allocations: 11.89 kB / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.405e-05/0.1176, allocations: 86.69 kB / 497.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006044/0.1182, allocations: 96.22 kB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006926/0.1189, allocations: 419.9 kB / 497.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.119, allocations: 29.36 kB / 497.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.1191, allocations: 55.92 kB / 497.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000899/0.12, allocations: 0.6678 MB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.12, allocations: 3.938 kB / 498.4 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.1201, allocations: 15.98 kB / 498.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.1202, allocations: 56.95 kB / 498.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007484/0.121, allocations: 491.5 kB / 498.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003342/0.1244, allocations: 3.148 MB / 0.4903 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.1248, allocations: 245.3 kB / 0.4905 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.125, allocations: 121.7 kB / 0.4906 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.125, allocations: 4 kB / 0.4907 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1251, allocations: 50.48 kB / 0.4907 GB, free: 8.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.1251, allocations: 0 / 0.4907 GB, free: 8.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.00136/0.1264, allocations: 0.8819 MB / 0.4916 GB, free: 7.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.1265, allocations: 84.97 kB / 0.4916 GB, free: 7.508 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.1268, allocations: 324.4 kB / 0.492 GB, free: 7.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.1268, allocations: 37.7 kB / 0.492 GB, free: 7.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.127, allocations: 303 kB / 0.4923 GB, free: 6.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.026e-05/0.1271, allocations: 86.8 kB / 0.4924 GB, free: 6.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1272, allocations: 90.03 kB / 0.4924 GB, free: 6.652 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1273, allocations: 346.7 kB / 0.4928 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.1275, allocations: 128.8 kB / 0.4929 GB, free: 6.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.1278, allocations: 321.2 kB / 0.4932 GB, free: 5.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/0.1284, allocations: 0.4964 MB / 0.4937 GB, free: 5.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1284, allocations: 4 kB / 0.4937 GB, free: 5.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009881/0.1294, allocations: 0.5922 MB / 0.4943 GB, free: 4.582 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1294, allocations: 8 kB / 0.4943 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005813/0.13, allocations: 325.8 kB / 0.4946 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004016/0.1304, allocations: 122 kB / 0.4947 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.1307, allocations: 87.83 kB / 0.4948 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002527/0.1332, allocations: 3.285 MB / 0.498 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.1335, allocations: 23.92 kB / 0.498 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.1335, allocations: 24 kB / 0.498 GB, free: 444 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002097/0.1338, allocations: 201.7 kB / 0.4982 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.064e-05/0.1338, allocations: 39.55 kB / 0.4983 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004978/0.1343, allocations: 313 kB / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1343, allocations: 4 kB / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1343, allocations: 3.938 kB / 0.4986 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1344, allocations: 3.984 kB / 0.4986 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.1354, allocations: 0.8046 MB / 0.4994 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1354, allocations: 0 / 0.4994 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.1358, allocations: 71.91 kB / 0.4994 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1358, allocations: 0 / 0.4994 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.1358, allocations: 7.984 kB / 0.4994 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1358, allocations: 4 kB / 0.4995 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1358, allocations: 0 / 0.4995 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000588/0.1364, allocations: 0.5067 MB / 0.4999 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.1366, allocations: 128.7 kB / 0.5001 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1366, allocations: 15.94 kB / 0.5001 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1368, allocations: 15.97 kB / 0.5001 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.1368, allocations: 19.92 kB / 0.5001 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.1368, allocations: 8 kB / 0.5001 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.137, allocations: 223 kB / 0.5003 GB, free: 13.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1371, allocations: 0 / 0.5003 GB, free: 13.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004521/0.1375, allocations: 104 kB / 0.5004 GB, free: 13.86 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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.0008792/0.1384, allocations: 1.039 MB / 0.5015 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008551/0.1393, allocations: 0.5919 MB / 0.502 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1393, allocations: 0.5 kB / 0.502 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.1395, allocations: 131.8 kB / 0.5022 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.14, allocations: 73.2 kB / 0.5022 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/0.1448, allocations: 4.039 MB / 0.5062 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.1452, allocations: 0.8699 MB / 0.507 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002922/0.1455, allocations: 111.2 kB / 0.5071 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.1457, allocations: 143.4 kB / 0.5073 GB, free: 6.496 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1457, allocations: 0 / 0.5073 GB, free: 6.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03031/0.176, allocations: 7.746 MB / 0.5148 GB, free: 14.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.561/9.737, allocations: 12 kB / 0.5148 GB, free: 14.68 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)