Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001286/0.001286, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.002076/0.002076, allocations: 198.9 kB / 18 MB, free: 5.078 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.399/1.399, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1837/0.1837, 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.00157/0.00157, allocations: 63.91 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1171, allocations: 55.25 MB / 486.6 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.007243/0.1244, allocations: 4.054 MB / 490.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1261, allocations: 0.9554 MB / 491.6 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003652/0.1265, allocations: 11.94 kB / 491.6 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.1269, allocations: 47.5 kB / 491.7 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000735/0.1276, allocations: 175 kB / 491.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.1279, allocations: 95.81 kB / 491.9 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005403/0.1284, allocations: 398.5 kB / 492.3 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.1288, allocations: 130.5 kB / 492.5 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003992/0.1292, allocations: 175.2 kB / 492.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004214/0.1296, allocations: 191.3 kB / 492.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.342e-05/0.1297, allocations: 20 kB / 492.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.905e-05/0.1298, allocations: 20 kB / 492.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1299, allocations: 87.77 kB / 492.9 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.13, allocations: 143.2 kB / 493.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000334/0.1304, allocations: 286.9 kB / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1304, allocations: 0 / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1304, allocations: 0 / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.1304, allocations: 0 / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0011/0.1315, allocations: 0.5971 MB / 494 MB, free: 1.391 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.1316, allocations: 15.89 kB / 494 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.836e-05/0.1317, allocations: 58.72 kB / 494 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.1317, allocations: 28.56 kB / 494.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005931/0.1323, allocations: 346.9 kB / 494.4 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.1324, allocations: 20.38 kB / 494.4 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.1324, allocations: 16 kB / 494.4 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.1329, allocations: 294.8 kB / 494.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1329, allocations: 0 / 494.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/0.1329, allocations: 8 kB / 494.7 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1329, allocations: 4 kB / 494.7 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.1333, allocations: 188.9 kB / 494.9 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.1348, allocations: 1.216 MB / 496.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.1351, allocations: 113.2 kB / 496.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.532e-05/0.1352, allocations: 45.7 kB / 496.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.1353, allocations: 3.906 kB / 496.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1353, allocations: 34.56 kB / 496.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.1353, allocations: 0 / 496.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000894/0.1362, allocations: 496.4 kB / 496.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.1363, allocations: 81.09 kB / 496.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.1365, allocations: 254.6 kB / 497.1 MB, free: 13.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.1365, allocations: 25.7 kB / 497.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1367, allocations: 195.6 kB / 497.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.1367, allocations: 39.39 kB / 497.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.417e-05/0.1368, allocations: 45.61 kB / 497.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1369, allocations: 338.8 kB / 497.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.234e-05/0.137, allocations: 31.98 kB / 497.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.1371, allocations: 140.7 kB / 497.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.1373, allocations: 184.7 kB / 498.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1373, allocations: 0 / 498.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003307/0.1376, allocations: 213.8 kB / 498.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1377, allocations: 4 kB / 498.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1377, allocations: 4 kB / 498.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.1377, allocations: 4 kB / 498.3 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.1379, allocations: 44.45 kB / 498.4 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.1379, allocations: 15.92 kB / 498.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.1381, allocations: 15.84 kB / 498.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.1381, allocations: 11.98 kB / 498.4 MB, free: 12.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.1383, allocations: 149.8 kB / 498.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.1383, allocations: 19.81 kB / 498.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002862/0.1386, allocations: 139.1 kB / 498.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1386, allocations: 4 kB / 498.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1386, allocations: 0 / 498.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.1386, allocations: 7.938 kB / 498.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006271/0.1393, allocations: 483.2 kB / 499.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1393, allocations: 7.938 kB / 499.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.1395, allocations: 27.92 kB / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1395, allocations: 0 / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1395, allocations: 3.938 kB / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.1395, allocations: 4 kB / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1395, allocations: 0 / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.1399, allocations: 284.9 kB / 499.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.339e-05/0.1399, allocations: 100.8 kB / 499.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.14, allocations: 7.938 kB / 499.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.724e-05/0.1401, allocations: 0 / 499.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.396e-05/0.1401, allocations: 11.98 kB / 499.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.1401, allocations: 0 / 499.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.1403, allocations: 182 kB / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1403, allocations: 0 / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.1406, allocations: 44 kB / 499.9 MB, free: 10.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.000595/0.1412, allocations: 0.8114 MB / 0.489 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.1415, allocations: 111.8 kB / 0.4891 GB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1415, allocations: 0 / 0.4891 GB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.779e-05/0.1416, allocations: 47.92 kB / 0.4891 GB, free: 9.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.1421, allocations: 69.45 kB / 0.4892 GB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.1448, allocations: 2.431 MB / 0.4915 GB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.1452, allocations: 0.7829 MB / 0.4923 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1453, allocations: 34.27 kB / 0.4923 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.1454, allocations: 83.34 kB / 0.4924 GB, free: 6.355 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1454, allocations: 0 / 0.4924 GB, free: 6.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.1707, allocations: 4.65 MB / 0.497 GB, free: 1.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.815, allocations: 11.69 kB / 0.497 GB, free: 1.637 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)