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.001049/0.001048, allocations: 111 kB / 17.06 MB, free: 5.965 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.001147/0.001147, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.381/1.381, 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.182/0.182, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.001688/0.001688, allocations: 68.47 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1012, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.005694/0.1069, allocations: 4.549 MB / 491.2 MB, free: 4.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.1095, allocations: 1.606 MB / 492.8 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003332/0.1099, allocations: 11.94 kB / 492.8 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009252/0.1109, allocations: 294.6 kB / 493.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000699/0.1116, allocations: 266.7 kB / 493.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000721/0.1123, allocations: 255.4 kB / 493.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007438/0.1131, allocations: 0.604 MB / 494.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004144/0.1135, allocations: 256.3 kB / 494.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.1139, allocations: 270.9 kB / 494.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005635/0.1145, allocations: 326.9 kB / 495 MB, free: 412 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.531e-05/0.1146, allocations: 32 kB / 495 MB, free: 380 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.115, allocations: 143.8 kB / 495.2 MB, free: 236 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002877/0.1153, allocations: 227.4 kB / 495.4 MB, free: 8 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004337/0.1158, allocations: 246.8 kB / 495.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007775/0.1165, allocations: 0.5956 MB / 496.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1166, allocations: 4 kB / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1166, allocations: 0 / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.1166, allocations: 0 / 496.2 MB, free: 15.16 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.001413/0.118, allocations: 0.766 MB / 497 MB, free: 14.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1181, allocations: 11.89 kB / 497 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.839e-05/0.1182, allocations: 82.7 kB / 497.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006034/0.1188, allocations: 92.22 kB / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006304/0.1194, allocations: 423.9 kB / 497.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.1195, allocations: 29.38 kB / 497.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.1196, allocations: 55.91 kB / 497.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.1205, allocations: 0.6678 MB / 498.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.1205, allocations: 7.922 kB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.291e-05/0.1206, allocations: 16 kB / 498.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.1207, allocations: 52.95 kB / 498.4 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007312/0.1214, allocations: 495.5 kB / 498.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003101/0.1245, allocations: 3.136 MB / 0.4903 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004332/0.125, allocations: 261.2 kB / 0.4905 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.1252, allocations: 121.7 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.1252, allocations: 7.938 kB / 0.4907 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.1253, allocations: 38.55 kB / 0.4907 GB, free: 8.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.1253, allocations: 4 kB / 0.4907 GB, free: 8.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.00162/0.1269, allocations: 0.878 MB / 0.4916 GB, free: 7.621 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.127, allocations: 84.97 kB / 0.4916 GB, free: 7.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000307/0.1273, allocations: 332.3 kB / 0.492 GB, free: 7.184 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.1273, allocations: 29.7 kB / 0.492 GB, free: 7.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.1275, allocations: 303 kB / 0.4923 GB, free: 6.844 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/0.1276, allocations: 90.88 kB / 0.4924 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.1277, allocations: 86.03 kB / 0.4924 GB, free: 6.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1278, allocations: 350.7 kB / 0.4928 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.128, allocations: 132.8 kB / 0.4929 GB, free: 6.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.1283, allocations: 317.1 kB / 0.4932 GB, free: 5.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005646/0.1289, allocations: 0.4925 MB / 0.4937 GB, free: 5.203 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.1289, allocations: 4 kB / 0.4937 GB, free: 5.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001043/0.13, allocations: 0.5925 MB / 0.4943 GB, free: 4.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.13, allocations: 8 kB / 0.4943 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005981/0.1306, allocations: 325.8 kB / 0.4946 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004081/0.131, allocations: 117.6 kB / 0.4947 GB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.1313, allocations: 83.83 kB / 0.4948 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002668/0.134, allocations: 3.301 MB / 0.498 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.1342, allocations: 19.92 kB / 0.498 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.1343, allocations: 24 kB / 0.498 GB, free: 452 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.0002157/0.1345, allocations: 209.6 kB / 0.4982 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.13e-05/0.1346, allocations: 35.61 kB / 0.4983 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004899/0.1351, allocations: 309 kB / 0.4986 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.1351, allocations: 8.062 kB / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1351, allocations: 3.938 kB / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1351, allocations: 3.984 kB / 0.4986 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.1362, allocations: 0.8007 MB / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1362, allocations: 0 / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.1365, allocations: 63.84 kB / 0.4994 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1365, allocations: 4.062 kB / 0.4994 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.1365, allocations: 11.98 kB / 0.4994 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.1365, allocations: 4 kB / 0.4994 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.1366, allocations: 7.984 kB / 0.4995 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.1372, allocations: 0.5026 MB / 0.4999 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.1373, allocations: 132.6 kB / 0.5001 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/0.1373, allocations: 8 kB / 0.5001 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.1375, allocations: 11.94 kB / 0.5001 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.1376, allocations: 15.97 kB / 0.5001 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1376, allocations: 12 kB / 0.5001 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.1378, allocations: 227 kB / 0.5003 GB, free: 13.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1378, allocations: 0 / 0.5003 GB, free: 13.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000465/0.1383, allocations: 100 kB / 0.5004 GB, free: 13.87 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.0008459/0.1391, allocations: 1.042 MB / 0.5015 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008604/0.14, allocations: 0.5962 MB / 0.502 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.14, allocations: 0 / 0.502 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.1402, allocations: 127.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.0005037/0.1407, allocations: 78.02 kB / 0.5022 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005042/0.1458, allocations: 4.035 MB / 0.5062 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/0.1462, allocations: 0.8738 MB / 0.507 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002525/0.1465, allocations: 111.2 kB / 0.5071 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.1467, allocations: 143.4 kB / 0.5073 GB, free: 6.5 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1467, allocations: 0 / 0.5073 GB, free: 6.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/0.1768, allocations: 7.738 MB / 0.5148 GB, free: 14.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.29, allocations: 15.94 kB / 0.5148 GB, free: 14.69 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)