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.0008819/0.000882, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0009092/0.0009091, allocations: 177 kB / 17.56 MB, free: 6.18 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.292/1.292, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1711/0.1711, allocations: 38.06 MB / 310.1 MB, free: 5.914 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.0005391/0.0005391, allocations: 12 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2492, allocations: 56.32 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005956/0.2552, allocations: 4.141 MB / 437.7 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.2578, allocations: 1.006 MB / 438.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006332/0.2584, allocations: 19.88 kB / 438.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002643/0.2587, allocations: 35.7 kB / 438.8 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006141/0.2594, allocations: 151.2 kB / 438.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.2597, allocations: 71.92 kB / 439 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005817/0.2603, allocations: 0.5179 MB / 439.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.2605, allocations: 93.69 kB / 439.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/0.2609, allocations: 147.3 kB / 439.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.2612, allocations: 179.3 kB / 439.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.2613, allocations: 19.94 kB / 440 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.174e-05/0.2614, allocations: 8 kB / 440 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.252e-05/0.2615, allocations: 75.73 kB / 440 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.2616, allocations: 153 kB / 440.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.2619, allocations: 270.9 kB / 440.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2619, allocations: 0 / 440.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2619, allocations: 0 / 440.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.2619, allocations: 0 / 440.5 MB, free: 11.75 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.001079/0.263, allocations: 0.5465 MB / 441 MB, free: 11.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.263, allocations: 15.97 kB / 441 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.498e-05/0.2631, allocations: 58.73 kB / 441.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.234e-05/0.2632, allocations: 32.56 kB / 441.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.2638, allocations: 315 kB / 441.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.2638, allocations: 20.81 kB / 441.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.264, allocations: 39.92 kB / 441.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/0.2644, allocations: 286 kB / 441.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.2645, allocations: 7.984 kB / 441.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.2645, allocations: 12 kB / 441.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2645, allocations: 11.94 kB / 441.8 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.2648, allocations: 183.6 kB / 442 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.2662, allocations: 1.28 MB / 443.2 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.2664, allocations: 123.8 kB / 443.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.405e-05/0.2665, allocations: 42.62 kB / 443.4 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.2666, allocations: 3.938 kB / 443.4 MB, free: 8.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.2666, allocations: 42.56 kB / 443.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 4.077e-06/0.2666, allocations: 0 / 443.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008726/0.2675, allocations: 0.5309 MB / 444 MB, free: 7.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.2675, allocations: 106.8 kB / 444.1 MB, free: 7.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.2677, allocations: 250.5 kB / 444.3 MB, free: 7.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.2678, allocations: 29.7 kB / 444.4 MB, free: 7.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.497e-05/0.2678, allocations: 199.9 kB / 444.6 MB, free: 7.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.2679, allocations: 39.45 kB / 444.6 MB, free: 7.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.2679, allocations: 25.7 kB / 444.6 MB, free: 7.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.038e-05/0.268, allocations: 330.8 kB / 444.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.982e-05/0.2681, allocations: 43.98 kB / 445 MB, free: 6.832 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.926e-05/0.2682, allocations: 127.9 kB / 445.1 MB, free: 6.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.2684, allocations: 195.7 kB / 445.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2684, allocations: 4 kB / 445.3 MB, free: 6.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003522/0.2687, allocations: 225.9 kB / 445.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.2688, allocations: 4 kB / 445.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.2688, allocations: 4.406 kB / 445.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001405/0.2689, allocations: 36.78 kB / 445.6 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.2692, allocations: 63.89 kB / 445.6 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.2693, allocations: 11.92 kB / 445.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.2694, allocations: 11.84 kB / 445.7 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.2694, allocations: 12 kB / 445.7 MB, free: 6.055 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.2696, allocations: 145.8 kB / 445.8 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.2696, allocations: 23.81 kB / 445.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002424/0.2699, allocations: 143.2 kB / 446 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.2699, allocations: 7.938 kB / 446 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2699, allocations: 0 / 446 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2699, allocations: 0 / 446 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.2702, allocations: 289.5 kB / 446.3 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2702, allocations: 0 / 446.3 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.2704, allocations: 27.92 kB / 446.3 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.2704, allocations: 4 kB / 446.3 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.2704, allocations: 7.984 kB / 446.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.2704, allocations: 7.938 kB / 446.3 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2704, allocations: 0 / 446.3 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.2708, allocations: 359.4 kB / 446.7 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.2708, allocations: 96.8 kB / 446.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.2708, allocations: 8 kB / 446.8 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.271, allocations: 12 kB / 446.8 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.142e-05/0.271, allocations: 11.92 kB / 446.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-06/0.271, allocations: 8 kB / 446.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.2712, allocations: 174 kB / 447 MB, free: 4.656 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2712, allocations: 96 / 447 MB, free: 4.656 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.2715, allocations: 47.94 kB / 447 MB, free: 4.609 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 (14): * Single equations (assignments): 13 * 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.0004571/0.272, allocations: 0.8958 MB / 447.9 MB, free: 3.684 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002962/0.2723, allocations: 210.6 kB / 448.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2723, allocations: 0 / 448.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.1e-05/0.2724, allocations: 59.92 kB / 448.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.2729, allocations: 45.05 kB / 448.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.2756, allocations: 2.78 MB / 451 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.276, allocations: 0.7677 MB / 451.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.2762, allocations: 30.28 kB / 451.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.2763, allocations: 95.33 kB / 451.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2763, allocations: 4 kB / 451.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.2939, allocations: 4.473 MB / 456.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.2941, allocations: 227.4 kB / 456.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.013, allocations: 3.938 kB / 456.6 MB, free: 10.78 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/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)