Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001631/0.001635, allocations: 185.1 kB / 15.77 MB, free: 6.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.049/2.049, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001127/0.001127, allocations: 94.77 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.256/0.256, allocations: 38.04 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004428/0.0004428, allocations: 8 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1231, allocations: 56.33 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.008478/0.1317, allocations: 4.12 MB / 483.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003519/0.1352, allocations: 1.136 MB / 484.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003607/0.1356, allocations: 19.88 kB / 484.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.1359, allocations: 55.59 kB / 484.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009079/0.1368, allocations: 203.3 kB / 484.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.1373, allocations: 123.7 kB / 484.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006554/0.138, allocations: 267.4 kB / 485 MB, free: 11.99 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003394/0.1384, allocations: 114.2 kB / 485.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004655/0.1389, allocations: 159.4 kB / 485.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000546/0.1394, allocations: 175.4 kB / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.766e-05/0.1395, allocations: 16 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.574e-05/0.1396, allocations: 12 kB / 485.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.1399, allocations: 95.7 kB / 485.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.14, allocations: 89.5 kB / 485.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005243/0.1406, allocations: 267.3 kB / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1406, allocations: 0 / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1406, allocations: 3.938 kB / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1406, allocations: 0 / 486 MB, free: 11.08 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.002248/0.1429, allocations: 0.6515 MB / 486.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.1429, allocations: 8.031 kB / 486.6 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.1431, allocations: 66.48 kB / 486.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.1432, allocations: 39.53 kB / 486.7 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1444, allocations: 366.7 kB / 487.1 MB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.1444, allocations: 20.56 kB / 487.1 MB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.645e-05/0.1446, allocations: 24 kB / 487.1 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.1456, allocations: 356.7 kB / 487.5 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.1457, allocations: 3.984 kB / 487.5 MB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.311e-05/0.1457, allocations: 8 kB / 487.5 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.1458, allocations: 11.95 kB / 487.5 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008945/0.1467, allocations: 261.9 kB / 487.7 MB, free: 9.152 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.1501, allocations: 1.446 MB / 489.2 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005004/0.1506, allocations: 161.1 kB / 489.3 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1507, allocations: 7.938 kB / 489.4 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.1508, allocations: 34.52 kB / 489.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 3.386e-06/0.1508, allocations: 0 / 489.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.002109/0.1529, allocations: 0.6681 MB / 490.1 MB, free: 6.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.153, allocations: 89.23 kB / 490.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005806/0.1536, allocations: 300.5 kB / 490.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.1536, allocations: 25.7 kB / 490.5 MB, free: 6.215 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.1539, allocations: 266.1 kB / 490.7 MB, free: 5.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.45e-05/0.154, allocations: 59.19 kB / 490.8 MB, free: 5.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.349e-05/0.154, allocations: 4 kB / 490.8 MB, free: 5.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1542, allocations: 322.8 kB / 491.1 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.1545, allocations: 63.95 kB / 491.2 MB, free: 5.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.1549, allocations: 168.8 kB / 491.3 MB, free: 5.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.1552, allocations: 95.84 kB / 491.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1552, allocations: 0 / 491.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008442/0.1561, allocations: 273.2 kB / 491.7 MB, free: 4.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.1561, allocations: 7.953 kB / 491.7 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1561, allocations: 4 kB / 491.7 MB, free: 4.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-05/0.1562, allocations: 15.92 kB / 491.7 MB, free: 4.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000584/0.1568, allocations: 60.34 kB / 491.8 MB, free: 4.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.1568, allocations: 4 kB / 491.8 MB, free: 4.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.1572, allocations: 19.98 kB / 491.8 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.1572, allocations: 8 kB / 491.8 MB, free: 4.809 MB / 330.7 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 (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002968/0.1576, allocations: 165.7 kB / 492 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-05/0.1577, allocations: 27.72 kB / 492 MB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007848/0.1585, allocations: 235.4 kB / 492.2 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.1585, allocations: 4 kB / 492.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.1585, allocations: 3.953 kB / 492.2 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.1585, allocations: 4 kB / 492.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.1601, allocations: 0.6162 MB / 492.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.1601, allocations: 7.938 kB / 492.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/0.1606, allocations: 31.98 kB / 492.9 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.1606, allocations: 3.953 kB / 492.9 MB, free: 3.645 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.1607, allocations: 8 kB / 492.9 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/0.1607, allocations: 7.969 kB / 492.9 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1607, allocations: 0 / 492.9 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.1618, allocations: 452.5 kB / 493.4 MB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.162, allocations: 100.7 kB / 493.5 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.376e-05/0.1621, allocations: 4 kB / 493.5 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003384/0.1624, allocations: 11.98 kB / 493.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.1625, allocations: 16.05 kB / 493.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.1626, allocations: 4 kB / 493.5 MB, free: 3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004141/0.163, allocations: 215 kB / 493.7 MB, free: 2.789 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.163, allocations: 0 / 493.7 MB, free: 2.789 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000635/0.1636, allocations: 64 kB / 493.8 MB, free: 2.727 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.001518/0.1652, allocations: 1.109 MB / 494.9 MB, free: 1.574 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006616/0.1659, allocations: 188.3 kB / 495.1 MB, free: 1.391 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.1659, allocations: 4.312 kB / 495.1 MB, free: 1.387 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000302/0.1662, allocations: 90.86 kB / 495.1 MB, free: 1.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008386/0.1671, allocations: 69 kB / 495.2 MB, free: 1.234 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005878/0.173, allocations: 3.982 MB / 499.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006329/0.1737, allocations: 0.8145 MB / 0.4883 GB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/0.174, allocations: 107.4 kB / 0.4884 GB, free: 12.18 MB / 346.7 MB Notification: Performance of SimCode: time 1.633e-06/0.174, allocations: 0 / 0.4884 GB, free: 12.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/2.639, allocations: 5.257 MB / 0.4935 GB, free: 6.926 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)