Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001478/0.001478, allocations: 106 kB / 17.06 MB, free: 6.016 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.001753/0.001754, allocations: 195 kB / 18 MB, free: 5.094 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.415/1.415, 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.1769/0.1769, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001493/0.001493, allocations: 75.89 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.1005, allocations: 55.24 MB / 486.6 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.006156/0.1067, allocations: 4.565 MB / 491.2 MB, free: 4.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002602/0.1093, allocations: 1.516 MB / 492.7 MB, free: 2.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003064/0.1097, allocations: 11.94 kB / 492.7 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.111, allocations: 390.9 kB / 493.1 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007967/0.1118, allocations: 238.8 kB / 493.3 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008896/0.1127, allocations: 255.3 kB / 493.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008349/0.1136, allocations: 0.5534 MB / 494.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005632/0.1141, allocations: 338.5 kB / 494.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005158/0.1147, allocations: 255 kB / 494.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006139/0.1153, allocations: 322.9 kB / 495 MB, free: 428 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.331e-05/0.1154, allocations: 36 kB / 495 MB, free: 392 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004158/0.1158, allocations: 143.8 kB / 495.2 MB, free: 248 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.1161, allocations: 231.4 kB / 495.4 MB, free: 16 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.1165, allocations: 246.9 kB / 495.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000836/0.1173, allocations: 0.5917 MB / 496.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.1173, allocations: 0 / 496.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1173, allocations: 0 / 496.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.1174, allocations: 4 kB / 496.3 MB, free: 15.18 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001791/0.1192, allocations: 0.7699 MB / 497 MB, free: 14.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.1192, allocations: 11.89 kB / 497 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.1194, allocations: 94.64 kB / 497.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007221/0.1201, allocations: 96.22 kB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007873/0.1209, allocations: 416 kB / 497.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.121, allocations: 33.38 kB / 497.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.1211, allocations: 55.91 kB / 497.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1221, allocations: 0.6489 MB / 498.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1222, allocations: 3.938 kB / 498.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.1222, allocations: 16 kB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.1224, allocations: 28.98 kB / 498.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008344/0.1232, allocations: 487.5 kB / 498.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003864/0.1271, allocations: 2.995 MB / 0.4901 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.1275, allocations: 189 kB / 0.4903 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1277, allocations: 105.7 kB / 0.4904 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1277, allocations: 4 kB / 0.4904 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.1277, allocations: 34.5 kB / 0.4904 GB, free: 8.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.314e-06/0.1277, allocations: 0 / 0.4904 GB, free: 8.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001432/0.1292, allocations: 0.8508 MB / 0.4913 GB, free: 7.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.1293, allocations: 81.11 kB / 0.4913 GB, free: 7.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003978/0.1297, allocations: 353.4 kB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.1297, allocations: 29.7 kB / 0.4917 GB, free: 7.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.1299, allocations: 299 kB / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.481e-05/0.13, allocations: 71 kB / 0.4921 GB, free: 7.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.1301, allocations: 94.06 kB / 0.4921 GB, free: 7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1303, allocations: 350.8 kB / 0.4925 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.1304, allocations: 120.8 kB / 0.4926 GB, free: 6.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.1308, allocations: 334.8 kB / 0.4929 GB, free: 6.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.1313, allocations: 0.4942 MB / 0.4934 GB, free: 5.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1314, allocations: 3.938 kB / 0.4934 GB, free: 5.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001034/0.1324, allocations: 0.5562 MB / 0.4939 GB, free: 4.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1324, allocations: 8 kB / 0.494 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005155/0.133, allocations: 276.4 kB / 0.4942 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.1333, allocations: 76.8 kB / 0.4943 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.1336, allocations: 100.2 kB / 0.4944 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.1353, allocations: 1.734 MB / 0.4961 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.1357, allocations: 27.92 kB / 0.4961 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.101e-05/0.1357, allocations: 24 kB / 0.4961 GB, free: 2.562 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002877/0.136, allocations: 217.5 kB / 0.4963 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.507e-05/0.1361, allocations: 39.53 kB / 0.4964 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005092/0.1366, allocations: 280.8 kB / 0.4966 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.1367, allocations: 8 kB / 0.4967 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1367, allocations: 3.938 kB / 0.4967 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1367, allocations: 3.984 kB / 0.4967 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.1381, allocations: 0.7849 MB / 0.4974 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1381, allocations: 0 / 0.4974 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.1384, allocations: 56.03 kB / 0.4975 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.1384, allocations: 144 / 0.4975 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.1385, allocations: 8 kB / 0.4975 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.1385, allocations: 7.938 kB / 0.4975 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.1385, allocations: 3.938 kB / 0.4975 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006144/0.1391, allocations: 490.7 kB / 0.498 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.1392, allocations: 104.8 kB / 0.4981 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/0.1393, allocations: 11.94 kB / 0.4981 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.1395, allocations: 11.94 kB / 0.4981 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.1395, allocations: 19.91 kB / 0.4981 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.1396, allocations: 4 kB / 0.4981 GB, free: 420 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.1398, allocations: 235.2 kB / 0.4983 GB, free: 188 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1398, allocations: 0 / 0.4983 GB, free: 188 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005209/0.1403, allocations: 100 kB / 0.4984 GB, free: 88 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (24): * Single equations (assignments): 23 * 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.0008954/0.1412, allocations: 1.003 MB / 0.4994 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008753/0.1421, allocations: 448 kB / 0.4998 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1421, allocations: 0 / 0.4998 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.1423, allocations: 111.8 kB / 0.4999 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.1429, allocations: 71 kB / 0.5 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005224/0.1481, allocations: 4.002 MB / 0.5039 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004384/0.1486, allocations: 0.8624 MB / 0.5048 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00027/0.1489, allocations: 111.2 kB / 0.5049 GB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.1491, allocations: 147.4 kB / 0.505 GB, free: 8.992 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1491, allocations: 0 / 0.505 GB, free: 8.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.1787, allocations: 7.515 MB / 0.5123 GB, free: 1.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.604/9.783, allocations: 15.62 kB / 0.5124 GB, free: 1.402 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)