Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001584, allocations: 191.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.973/1.973, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 98.8 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2606/0.2606, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000636/0.0006363, allocations: 15.98 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1137, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.007696/0.1215, allocations: 4.451 MB / 483.6 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.1257, allocations: 1.611 MB / 485.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004714/0.1262, allocations: 19.88 kB / 485.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.1265, allocations: 71.5 kB / 485.3 MB, free: 11.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000986/0.1275, allocations: 219.3 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.1287, allocations: 243.4 kB / 485.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007433/0.1295, allocations: 307.7 kB / 486 MB, free: 11 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.1308, allocations: 0.5281 MB / 486.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005194/0.1314, allocations: 183.4 kB / 486.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005549/0.1319, allocations: 207.3 kB / 486.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.453e-05/0.132, allocations: 20 kB / 487 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003737/0.1324, allocations: 91.84 kB / 487.1 MB, free: 9.949 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003022/0.1327, allocations: 199.5 kB / 487.2 MB, free: 9.754 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.1329, allocations: 113.4 kB / 487.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007497/0.1337, allocations: 450.9 kB / 487.8 MB, free: 9.195 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1337, allocations: 0 / 487.8 MB, free: 9.195 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1337, allocations: 0 / 487.8 MB, free: 9.195 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1337, allocations: 4 kB / 487.8 MB, free: 9.191 MB / 330.7 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.001912/0.1357, allocations: 0.6802 MB / 488.5 MB, free: 8.461 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.1357, allocations: 8.031 kB / 488.5 MB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002239/0.136, allocations: 86.52 kB / 488.6 MB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.137, allocations: 95.28 kB / 488.7 MB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.1382, allocations: 394.9 kB / 489.1 MB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.1383, allocations: 29 kB / 489.1 MB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.1385, allocations: 59.91 kB / 489.1 MB, free: 7.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.14, allocations: 0.6332 MB / 489.8 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/0.14, allocations: 3.906 kB / 489.8 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.063e-05/0.1401, allocations: 20 kB / 489.8 MB, free: 7.027 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002019/0.1403, allocations: 36.98 kB / 489.8 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.1416, allocations: 471.5 kB / 490.3 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005332/0.147, allocations: 3.003 MB / 493.3 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/0.1475, allocations: 189 kB / 493.5 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.1475, allocations: 0 / 493.5 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.1476, allocations: 38.62 kB / 493.5 MB, free: 3.113 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 4.809e-06/0.1476, allocations: 0 / 493.5 MB, free: 3.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.002107/0.1498, allocations: 0.8469 MB / 494.4 MB, free: 2.211 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.556e-05/0.1498, allocations: 81.11 kB / 494.4 MB, free: 2.113 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005255/0.1504, allocations: 341.5 kB / 494.8 MB, free: 1.773 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.1504, allocations: 29.7 kB / 494.8 MB, free: 1.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.1507, allocations: 357.4 kB / 495.2 MB, free: 1.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.731e-05/0.1508, allocations: 78.89 kB / 495.2 MB, free: 1.305 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.1509, allocations: 12.12 kB / 495.2 MB, free: 1.293 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1511, allocations: 338.8 kB / 495.6 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.1514, allocations: 120.8 kB / 495.7 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005244/0.1519, allocations: 331 kB / 496 MB, free: 428 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004797/0.1524, allocations: 199.7 kB / 496.2 MB, free: 228 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.046e-06/0.1524, allocations: 4 kB / 496.2 MB, free: 224 kB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001628/0.1541, allocations: 0.5338 MB / 496.8 MB, free: 15.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.1541, allocations: 8 kB / 496.8 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008488/0.155, allocations: 265.3 kB / 497 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005462/0.1556, allocations: 88.73 kB / 497.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006424/0.1562, allocations: 99.83 kB / 497.2 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00241/0.1586, allocations: 1.628 MB / 498.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004292/0.1591, allocations: 23.92 kB / 498.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/0.1592, allocations: 24 kB / 498.9 MB, free: 13.41 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003826/0.1596, allocations: 217.6 kB / 499.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.1597, allocations: 31.62 kB / 499.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007591/0.1604, allocations: 296.8 kB / 499.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1605, allocations: 4 kB / 499.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.1605, allocations: 3.984 kB / 499.4 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.1605, allocations: 0 / 499.4 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.1624, allocations: 0.8018 MB / 0.4885 GB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.1624, allocations: 3.953 kB / 0.4885 GB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.163, allocations: 51.97 kB / 0.4885 GB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.163, allocations: 0 / 0.4885 GB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.163, allocations: 8 kB / 0.4886 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.1631, allocations: 0 / 0.4886 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.1631, allocations: 11.92 kB / 0.4886 GB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009843/0.1641, allocations: 0.4917 MB / 0.489 GB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.1642, allocations: 112.7 kB / 0.4892 GB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.664e-05/0.1643, allocations: 8 kB / 0.4892 GB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.1646, allocations: 11.98 kB / 0.4892 GB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/0.1647, allocations: 19.94 kB / 0.4892 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.1647, allocations: 8 kB / 0.4892 GB, free: 11.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000358/0.1651, allocations: 231.1 kB / 0.4894 GB, free: 10.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1651, allocations: 3.938 kB / 0.4894 GB, free: 10.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007096/0.1658, allocations: 100 kB / 0.4895 GB, free: 10.88 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001426/0.1672, allocations: 1.246 MB / 0.4907 GB, free: 9.582 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.1685, allocations: 442.7 kB / 0.4912 GB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1685, allocations: 0 / 0.4912 GB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002909/0.1688, allocations: 117.2 kB / 0.4913 GB, free: 9.023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.1694, allocations: 62.95 kB / 0.4913 GB, free: 8.965 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007812/0.1772, allocations: 7.225 MB / 0.4984 GB, free: 1.543 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/0.1779, allocations: 0.8857 MB / 0.4993 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003448/0.1783, allocations: 151.4 kB / 0.4994 GB, free: 496 kB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1783, allocations: 0 / 0.4994 GB, free: 496 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.68/2.858, allocations: 7.556 MB / 0.5068 GB, free: 8.914 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)