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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001007/0.001007, allocations: 107.9 kB / 16.92 MB, free: 6.199 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.001043/0.001043, allocations: 191.4 kB / 17.85 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1731/0.1731, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 63.61 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.1002, allocations: 58.07 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.005547/0.1058, allocations: 4.536 MB / 461.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.1081, allocations: 1.562 MB / 463.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.1083, allocations: 15.88 kB / 463.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000782/0.1091, allocations: 290.2 kB / 463.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000474/0.1095, allocations: 278.7 kB / 463.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.1101, allocations: 251.4 kB / 463.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000558/0.1107, allocations: 0.6118 MB / 464.5 MB, free: 384 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.1111, allocations: 256.3 kB / 464.7 MB, free: 124 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.1114, allocations: 262.9 kB / 465 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004253/0.1118, allocations: 323 kB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.347e-05/0.1119, allocations: 36 kB / 465.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002654/0.1122, allocations: 139.8 kB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.1124, allocations: 223.4 kB / 465.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.1126, allocations: 246.8 kB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005587/0.1132, allocations: 0.584 MB / 466.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1132, allocations: 0 / 466.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1132, allocations: 0 / 466.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.1132, allocations: 0 / 466.5 MB, free: 14.33 MB / 350.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.001231/0.1145, allocations: 0.7699 MB / 467.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1145, allocations: 15.89 kB / 467.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.122e-05/0.1146, allocations: 90.64 kB / 467.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005541/0.1152, allocations: 96.2 kB / 467.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005368/0.1157, allocations: 396 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.1157, allocations: 33.36 kB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.1159, allocations: 47.94 kB / 468 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008287/0.1167, allocations: 0.6638 MB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1167, allocations: 3.938 kB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.1168, allocations: 23.98 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/0.1169, allocations: 44.97 kB / 468.7 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000699/0.1176, allocations: 499.5 kB / 469.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002967/0.1206, allocations: 3.152 MB / 472.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004102/0.121, allocations: 246.5 kB / 472.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.1212, allocations: 129.6 kB / 472.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.1213, allocations: 4 kB / 472.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.1213, allocations: 42.44 kB / 472.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.1213, allocations: 0 / 472.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001316/0.1226, allocations: 0.8869 MB / 473.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.1227, allocations: 81.11 kB / 473.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.123, allocations: 332.4 kB / 474 MB, free: 6.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.123, allocations: 29.7 kB / 474.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.1232, allocations: 299 kB / 474.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.369e-05/0.1233, allocations: 86.8 kB / 474.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.1234, allocations: 86.03 kB / 474.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1235, allocations: 354.7 kB / 474.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.1237, allocations: 124.8 kB / 475 MB, free: 5.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.124, allocations: 325.2 kB / 475.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.1246, allocations: 0.501 MB / 475.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.1246, allocations: 4 kB / 475.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001018/0.1257, allocations: 0.5884 MB / 476.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1257, allocations: 8 kB / 476.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005922/0.1263, allocations: 329.3 kB / 476.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.1267, allocations: 117.9 kB / 476.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.127, allocations: 87.81 kB / 476.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/0.1298, allocations: 3.289 MB / 480.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.1301, allocations: 12 kB / 480.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.1301, allocations: 24 kB / 480.3 MB, free: 15.63 MB / 366.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.0002504/0.1304, allocations: 217.7 kB / 480.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.24e-05/0.1305, allocations: 31.62 kB / 480.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005175/0.131, allocations: 320.8 kB / 480.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.131, allocations: 4 kB / 480.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.131, allocations: 3.938 kB / 480.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.131, allocations: 0 / 480.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.1322, allocations: 0.8082 MB / 481.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1322, allocations: 3.984 kB / 481.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.1325, allocations: 63.84 kB / 481.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1325, allocations: 0 / 481.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.1325, allocations: 8 kB / 481.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.1325, allocations: 0 / 481.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1325, allocations: 7.938 kB / 481.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006223/0.1332, allocations: 0.502 MB / 482.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.1333, allocations: 128.6 kB / 482.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.1334, allocations: 8 kB / 482.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1335, allocations: 11.98 kB / 482.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.1336, allocations: 15.98 kB / 482.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.1336, allocations: 19.92 kB / 482.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.1339, allocations: 219.1 kB / 482.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1339, allocations: 0 / 482.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004523/0.1343, allocations: 96 kB / 482.7 MB, free: 13.05 MB / 366.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.0009403/0.1353, allocations: 1.056 MB / 483.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009679/0.1363, allocations: 0.6102 MB / 484.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1363, allocations: 4 kB / 484.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.1365, allocations: 123.8 kB / 484.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.137, allocations: 70.02 kB / 484.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005423/0.1424, allocations: 4.076 MB / 488.6 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006768/0.1431, allocations: 0.8699 MB / 489.5 MB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000387/0.1435, allocations: 111.2 kB / 489.6 MB, free: 5.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.1438, allocations: 143.4 kB / 489.8 MB, free: 5.641 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1438, allocations: 0 / 489.8 MB, free: 5.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.1812, allocations: 7.496 MB / 497.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.083/9.264, allocations: 4.062 kB / 497.3 MB, free: 14.25 MB / 382.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)