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.001041/0.001041, allocations: 92.53 kB / 16.3 MB, free: 5.656 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.001057/0.001058, allocations: 188 kB / 17.2 MB, free: 5.59 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.666/1.666, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2036/0.2036, allocations: 38.05 MB / 309.7 MB, free: 6.125 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.0005689/0.000569, allocations: 12 kB / 376.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2807, allocations: 56.32 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.003564/0.2843, allocations: 3.846 MB / 436.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.2856, allocations: 0.9833 MB / 437.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.2858, allocations: 15.88 kB / 437.8 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.2859, allocations: 47.67 kB / 437.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003749/0.2863, allocations: 155.5 kB / 437.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.2865, allocations: 91.83 kB / 438 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002698/0.2868, allocations: 223.5 kB / 438.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.287, allocations: 81.03 kB / 438.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.2872, allocations: 135.5 kB / 438.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.2875, allocations: 135.5 kB / 438.6 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.2875, allocations: 12 kB / 438.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.607e-05/0.2875, allocations: 12 kB / 438.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.767e-05/0.2876, allocations: 71.75 kB / 438.7 MB, free: 13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.025e-05/0.2877, allocations: 73.52 kB / 438.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.2878, allocations: 203.5 kB / 439 MB, free: 12.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.2879, allocations: 0 / 439 MB, free: 12.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2879, allocations: 0 / 439 MB, free: 12.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2879, allocations: 0 / 439 MB, free: 12.73 MB / 318.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.0008329/0.2887, allocations: 0.5659 MB / 439.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.2888, allocations: 8.031 kB / 439.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.576e-05/0.2888, allocations: 54.55 kB / 439.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.2889, allocations: 35.62 kB / 439.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.2893, allocations: 309.8 kB / 439.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.2893, allocations: 24.36 kB / 440 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.2895, allocations: 35.91 kB / 440 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.2898, allocations: 294 kB / 440.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.2898, allocations: 3.953 kB / 440.3 MB, free: 11.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.2899, allocations: 8 kB / 440.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.2899, allocations: 4 kB / 440.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.2901, allocations: 195.5 kB / 440.5 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2914, allocations: 1.276 MB / 441.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.2916, allocations: 123.8 kB / 441.9 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.2917, allocations: 4 kB / 441.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.2917, allocations: 34.62 kB / 441.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.2917, allocations: 0 / 441.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007768/0.2925, allocations: 0.539 MB / 442.5 MB, free: 8.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.2925, allocations: 114.8 kB / 442.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.2927, allocations: 238.7 kB / 442.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.2927, allocations: 25.7 kB / 442.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.669e-05/0.2928, allocations: 191.6 kB / 443 MB, free: 8.312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.2929, allocations: 43.45 kB / 443.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-06/0.2929, allocations: 4 kB / 443.1 MB, free: 8.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.755e-05/0.2929, allocations: 330.9 kB / 443.4 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.406e-05/0.293, allocations: 39.98 kB / 443.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.884e-05/0.2931, allocations: 127.9 kB / 443.5 MB, free: 7.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.811e-05/0.2932, allocations: 67.92 kB / 443.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2932, allocations: 0 / 443.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003244/0.2935, allocations: 233.8 kB / 443.8 MB, free: 7.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2936, allocations: 11.98 kB / 443.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2936, allocations: 0 / 443.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001122/0.2937, allocations: 33.25 kB / 443.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.294, allocations: 63.89 kB / 443.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.294, allocations: 4 kB / 444 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.2942, allocations: 8 kB / 444 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.2942, allocations: 15.98 kB / 444 MB, free: 7.285 MB / 318.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.0001037/0.2943, allocations: 149.7 kB / 444.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.972e-05/0.2943, allocations: 19.77 kB / 444.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.2946, allocations: 167.3 kB / 444.3 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2946, allocations: 3.938 kB / 444.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2946, allocations: 4 kB / 444.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2946, allocations: 3.984 kB / 444.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.2949, allocations: 285.5 kB / 444.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2949, allocations: 0 / 444.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.2951, allocations: 31.97 kB / 444.6 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2951, allocations: 0 / 444.6 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.2951, allocations: 7.953 kB / 444.6 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2951, allocations: 3.938 kB / 444.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2951, allocations: 4 kB / 444.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000293/0.2954, allocations: 398.7 kB / 445 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.329e-05/0.2955, allocations: 96.86 kB / 445.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.2955, allocations: 64 / 445.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.2956, allocations: 16 kB / 445.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.367e-05/0.2957, allocations: 7.984 kB / 445.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.2957, allocations: 4 kB / 445.2 MB, free: 5.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.2958, allocations: 173.9 kB / 445.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2958, allocations: 0 / 445.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.2961, allocations: 52 kB / 445.4 MB, free: 5.773 MB / 318.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 (15): * Single equations (assignments): 14 * 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.0004422/0.2966, allocations: 1.06 MB / 446.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002848/0.2969, allocations: 230.6 kB / 446.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2969, allocations: 0 / 446.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.323e-05/0.297, allocations: 54.8 kB / 446.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.2974, allocations: 41.05 kB / 446.8 MB, free: 4.344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.2994, allocations: 3.555 MB / 450.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.2996, allocations: 0.7835 MB / 451.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.2997, allocations: 34.27 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.2999, allocations: 87.39 kB / 451.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2999, allocations: 0 / 451.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01551/0.3154, allocations: 4.522 MB / 455.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.3156, allocations: 207.1 kB / 455.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.947, allocations: 0 / 455.9 MB, free: 11.03 MB / 334.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: