Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.000906/0.000906, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.001118/0.001118, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.703/1.703, allocations: 205.4 MB / 223.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3247/0.3247, allocations: 38.05 MB / 309.7 MB, free: 8.871 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.0005913/0.0005916, allocations: 23.98 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1272, allocations: 56.32 MB / 433 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005178/0.1324, allocations: 3.951 MB / 436.9 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.1346, allocations: 0.9829 MB / 437.9 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004921/0.1352, allocations: 23.81 kB / 437.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.1354, allocations: 43.61 kB / 438 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006873/0.1361, allocations: 183 kB / 438.1 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003203/0.1365, allocations: 83.91 kB / 438.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005545/0.1371, allocations: 434.5 kB / 438.6 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.1373, allocations: 77.14 kB / 438.7 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003237/0.1376, allocations: 147.3 kB / 438.9 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004105/0.138, allocations: 171.3 kB / 439 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.146e-05/0.1381, allocations: 8 kB / 439 MB, free: 500 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.568e-05/0.1382, allocations: 12 kB / 439 MB, free: 488 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.716e-05/0.1383, allocations: 83.7 kB / 439.1 MB, free: 404 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.149e-05/0.1384, allocations: 73.58 kB / 439.2 MB, free: 324 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.1386, allocations: 207.4 kB / 439.4 MB, free: 116 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1386, allocations: 0 / 439.4 MB, free: 116 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1386, allocations: 0 / 439.4 MB, free: 116 kB / 366.1 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.1386, allocations: 0 / 439.4 MB, free: 116 kB / 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.0009852/0.1396, allocations: 0.5542 MB / 440 MB, free: 15.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1397, allocations: 15.97 kB / 440 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.947e-05/0.1397, allocations: 58.55 kB / 440 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.817e-05/0.1398, allocations: 31.62 kB / 440.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005077/0.1403, allocations: 309.8 kB / 440.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.1404, allocations: 16.44 kB / 440.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.1405, allocations: 43.88 kB / 440.4 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.1409, allocations: 293.9 kB / 440.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.141, allocations: 3.938 kB / 440.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.141, allocations: 11.98 kB / 440.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.141, allocations: 8 kB / 440.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.1413, allocations: 183.6 kB / 440.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.1429, allocations: 1.28 MB / 442.2 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.1432, allocations: 119.8 kB / 442.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.137e-05/0.1433, allocations: 54.56 kB / 442.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.1433, allocations: 3.953 kB / 442.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1433, allocations: 34.56 kB / 442.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.833e-06/0.1433, allocations: 0 / 442.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009076/0.1442, allocations: 0.5237 MB / 442.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.1443, allocations: 114.7 kB / 443 MB, free: 12.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.1445, allocations: 234.6 kB / 443.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.1446, allocations: 29.7 kB / 443.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1447, allocations: 199.5 kB / 443.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.1447, allocations: 39.45 kB / 443.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-06/0.1448, allocations: 4 kB / 443.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1449, allocations: 330.8 kB / 443.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.969e-05/0.1449, allocations: 47.98 kB / 443.9 MB, free: 11.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.1451, allocations: 120 kB / 444 MB, free: 11.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.1452, allocations: 67.88 kB / 444.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1452, allocations: 0 / 444.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003714/0.1456, allocations: 229.9 kB / 444.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1456, allocations: 4 kB / 444.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.1456, allocations: 4 kB / 444.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000129/0.1457, allocations: 29.25 kB / 444.3 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.146, allocations: 71.88 kB / 444.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.1461, allocations: 4.234 kB / 444.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.1462, allocations: 11.91 kB / 444.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.1462, allocations: 11.98 kB / 444.4 MB, free: 10.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.1463, allocations: 149.7 kB / 444.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.1464, allocations: 23.77 kB / 444.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002498/0.1467, allocations: 155.1 kB / 444.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1467, allocations: 4 kB / 444.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1467, allocations: 96 / 444.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1467, allocations: 3.938 kB / 444.8 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.1471, allocations: 285.5 kB / 445 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1471, allocations: 0 / 445 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.1472, allocations: 27.94 kB / 445.1 MB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1472, allocations: 4 kB / 445.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.1473, allocations: 3.984 kB / 445.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.1473, allocations: 4 kB / 445.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1473, allocations: 7.938 kB / 445.1 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.1476, allocations: 355.4 kB / 445.4 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.1477, allocations: 96.86 kB / 445.5 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.1478, allocations: 7.953 kB / 445.5 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1479, allocations: 7.938 kB / 445.6 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.265e-05/0.1479, allocations: 20.03 kB / 445.6 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.1479, allocations: 4 kB / 445.6 MB, free: 9.398 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001501/0.1481, allocations: 170 kB / 445.7 MB, free: 9.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1481, allocations: 0 / 445.7 MB, free: 9.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003506/0.1485, allocations: 48 kB / 445.8 MB, free: 9.184 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0006345/0.1491, allocations: 0.8881 MB / 446.7 MB, free: 8.266 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003381/0.1495, allocations: 213.7 kB / 446.9 MB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1495, allocations: 0 / 446.9 MB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.721e-05/0.1496, allocations: 52.8 kB / 446.9 MB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.1501, allocations: 60.52 kB / 447 MB, free: 7.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.1525, allocations: 1.573 MB / 448.6 MB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.1529, allocations: 0.7677 MB / 449.3 MB, free: 5.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.1531, allocations: 34.22 kB / 449.4 MB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.1532, allocations: 87.41 kB / 449.5 MB, free: 5.344 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1532, allocations: 0 / 449.5 MB, free: 5.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.1715, allocations: 4.492 MB / 453.9 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002168/0.1717, allocations: 200.1 kB / 454.1 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/1.881, allocations: 0 / 454.1 MB, free: 0.6055 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) Environment - environmentSimulation: