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.001268/0.001268, allocations: 113.2 kB / 17.06 MB, free: 5.977 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.001187/0.001187, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.328/1.328, 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.1821/0.1821, 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.001497/0.001498, allocations: 68.47 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.09857, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.00758/0.1062, allocations: 4.573 MB / 491.2 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003009/0.1093, allocations: 1.512 MB / 492.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003853/0.1097, allocations: 15.94 kB / 492.7 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1109, allocations: 382.8 kB / 493.1 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006514/0.1116, allocations: 238.8 kB / 493.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007503/0.1123, allocations: 251.4 kB / 493.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007439/0.1131, allocations: 0.5572 MB / 494.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005149/0.1136, allocations: 338.5 kB / 494.5 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.1141, allocations: 259 kB / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005869/0.1147, allocations: 311 kB / 495 MB, free: 412 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-05/0.1148, allocations: 36 kB / 495 MB, free: 376 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003749/0.1152, allocations: 147.8 kB / 495.2 MB, free: 228 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002675/0.1155, allocations: 227.4 kB / 495.4 MB, free: 0 / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003627/0.1159, allocations: 246.9 kB / 495.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007838/0.1167, allocations: 0.5917 MB / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1167, allocations: 0 / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1167, allocations: 0 / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.684e-05/0.1167, 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00164/0.1184, allocations: 0.7737 MB / 497 MB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.1184, allocations: 15.89 kB / 497 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001324/0.1186, allocations: 86.64 kB / 497.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006085/0.1192, allocations: 96.22 kB / 497.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006436/0.1198, allocations: 420 kB / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.1199, allocations: 33.36 kB / 497.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.12, allocations: 55.86 kB / 497.7 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009309/0.121, allocations: 0.6528 MB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.121, allocations: 0 / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.1211, allocations: 23.98 kB / 498.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001194/0.1212, allocations: 32.98 kB / 498.4 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007848/0.122, allocations: 483.4 kB / 498.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003429/0.1254, allocations: 2.995 MB / 0.4901 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.1258, allocations: 181 kB / 0.4903 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.1259, allocations: 105.7 kB / 0.4904 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.126, allocations: 4 kB / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.126, allocations: 38.55 kB / 0.4904 GB, free: 8.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.245e-06/0.126, allocations: 4 kB / 0.4904 GB, free: 8.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001409/0.1274, allocations: 0.8391 MB / 0.4913 GB, free: 7.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.1275, allocations: 81.11 kB / 0.4913 GB, free: 7.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003339/0.1279, allocations: 353.4 kB / 0.4917 GB, free: 7.492 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.1279, allocations: 29.7 kB / 0.4917 GB, free: 7.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.1281, allocations: 307.1 kB / 0.492 GB, free: 7.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.743e-05/0.1282, allocations: 75 kB / 0.4921 GB, free: 7.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.1283, allocations: 97.92 kB / 0.4922 GB, free: 6.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1284, allocations: 338.8 kB / 0.4925 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.1286, allocations: 128.8 kB / 0.4926 GB, free: 6.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003052/0.129, allocations: 334.8 kB / 0.4929 GB, free: 6.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005617/0.1295, allocations: 494.1 kB / 0.4934 GB, free: 5.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1295, allocations: 11.94 kB / 0.4934 GB, free: 5.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009962/0.1306, allocations: 0.556 MB / 0.4939 GB, free: 4.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1306, allocations: 8 kB / 0.494 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005076/0.1311, allocations: 272.4 kB / 0.4942 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003498/0.1315, allocations: 89.38 kB / 0.4943 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003341/0.1318, allocations: 95.83 kB / 0.4944 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/0.1334, allocations: 1.727 MB / 0.4961 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1337, allocations: 19.94 kB / 0.4961 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.1337, allocations: 27.98 kB / 0.4961 GB, free: 2.551 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.000232/0.134, allocations: 213.5 kB / 0.4963 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.308e-05/0.134, allocations: 35.53 kB / 0.4964 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004673/0.1345, allocations: 292.7 kB / 0.4966 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1345, allocations: 4 kB / 0.4966 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.1345, allocations: 0 / 0.4966 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1345, allocations: 0 / 0.4966 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.1357, allocations: 0.7849 MB / 0.4974 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1358, allocations: 4.062 kB / 0.4974 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000313/0.1361, allocations: 63.89 kB / 0.4975 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1361, allocations: 3.938 kB / 0.4975 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.1361, allocations: 4 kB / 0.4975 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.1361, allocations: 4 kB / 0.4975 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1361, allocations: 3.938 kB / 0.4975 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006022/0.1367, allocations: 490.6 kB / 0.498 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-05/0.1369, allocations: 100.7 kB / 0.4981 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/0.1369, allocations: 11.94 kB / 0.4981 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.1371, allocations: 15.97 kB / 0.4981 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.1372, allocations: 11.98 kB / 0.4981 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.1372, allocations: 19.98 kB / 0.4981 GB, free: 400 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.1374, allocations: 231.2 kB / 0.4983 GB, free: 172 kB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1374, allocations: 0 / 0.4983 GB, free: 172 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004614/0.1379, allocations: 100 kB / 0.4984 GB, free: 72 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.0008315/0.1387, allocations: 1.007 MB / 0.4994 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007153/0.1395, allocations: 443.6 kB / 0.4998 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1395, allocations: 0 / 0.4998 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.1397, allocations: 112.5 kB / 0.4999 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.1402, allocations: 82.53 kB / 0.5 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005071/0.1452, allocations: 3.982 MB / 0.5039 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/0.1457, allocations: 0.8701 MB / 0.5048 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002844/0.146, allocations: 115.2 kB / 0.5049 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.1462, allocations: 151.3 kB / 0.505 GB, free: 8.969 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1462, allocations: 0 / 0.505 GB, free: 8.969 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.1765, allocations: 7.508 MB / 0.5123 GB, free: 1.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.35, allocations: 19.69 kB / 0.5124 GB, free: 1.383 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)