Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.0008589/0.0008588, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0009262/0.0009262, allocations: 182 kB / 17.56 MB, free: 6.203 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.211/1.211, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1646/0.1646, allocations: 38.06 MB / 310.1 MB, free: 5.891 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.0004924/0.0004924, allocations: 15.98 kB / 377.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2262, allocations: 56.32 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.004123/0.2304, allocations: 5.372 MB / 439 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.233, allocations: 1.563 MB / 440.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.2334, allocations: 35.75 kB / 440.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005465/0.234, allocations: 103.3 kB / 440.7 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006609/0.2346, allocations: 302.7 kB / 441 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.2351, allocations: 139.8 kB / 441.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008168/0.2359, allocations: 1.064 MB / 442.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.2363, allocations: 135.5 kB / 442.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000362/0.2367, allocations: 254.8 kB / 442.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006404/0.2374, allocations: 442.7 kB / 443 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.65e-05/0.2374, allocations: 28 kB / 443 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.26e-05/0.2375, allocations: 24 kB / 443 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.2378, allocations: 211.4 kB / 443.2 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.2381, allocations: 276.5 kB / 443.5 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004952/0.2386, allocations: 0.5838 MB / 444.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.2386, allocations: 0 / 444.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2386, allocations: 0 / 444.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.2386, allocations: 0 / 444.1 MB, free: 8.109 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001795/0.2404, allocations: 0.8467 MB / 444.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.62e-05/0.2405, allocations: 16.03 kB / 444.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.2406, allocations: 70.72 kB / 445 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.2407, allocations: 52.28 kB / 445.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009914/0.2417, allocations: 0.5992 MB / 445.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.2418, allocations: 28.66 kB / 445.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.473e-05/0.2419, allocations: 43.89 kB / 445.7 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007624/0.2426, allocations: 0.5518 MB / 446.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.2427, allocations: 3.938 kB / 446.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.2427, allocations: 12 kB / 446.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003247/0.243, allocations: 92.52 kB / 446.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004931/0.2435, allocations: 354.3 kB / 446.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/0.2461, allocations: 2.055 MB / 448.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000804/0.2469, allocations: 389.1 kB / 449.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004972/0.2474, allocations: 317.5 kB / 449.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.2474, allocations: 11.92 kB / 449.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.2475, allocations: 30.56 kB / 449.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.633e-06/0.2475, allocations: 4 kB / 449.5 MB, free: 2.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.003963/0.2514, allocations: 2.534 MB / 452.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.2515, allocations: 85.23 kB / 452.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003723/0.2519, allocations: 381.6 kB / 452.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.252, allocations: 33.7 kB / 452.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.2521, allocations: 248.2 kB / 452.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.2522, allocations: 138.1 kB / 452.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.832e-05/0.2523, allocations: 53.69 kB / 453 MB, free: 14.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2525, allocations: 358.7 kB / 453.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003315/0.2528, allocations: 245 kB / 453.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/0.2532, allocations: 370.7 kB / 453.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009352/0.2542, allocations: 0.6157 MB / 454.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2542, allocations: 0 / 454.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001663/0.2559, allocations: 1.017 MB / 455.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.2559, allocations: 4 kB / 455.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.2559, allocations: 4.406 kB / 455.6 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000924/0.2568, allocations: 409.3 kB / 456 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.2571, allocations: 83.89 kB / 456.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004565/0.2617, allocations: 4.73 MB / 460.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.2621, allocations: 47.94 kB / 460.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.2621, allocations: 20 kB / 460.9 MB, free: 6.449 MB / 334.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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002651/0.2624, allocations: 209.5 kB / 461.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.284e-05/0.2625, allocations: 43.59 kB / 461.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.2639, allocations: 0.8386 MB / 461.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.2639, allocations: 4 kB / 461.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.2639, allocations: 7.938 kB / 462 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2639, allocations: 4 kB / 462 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/0.2658, allocations: 1.421 MB / 463.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2658, allocations: 0 / 463.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.266, allocations: 40.02 kB / 463.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.2672, allocations: 445.2 kB / 463.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/0.2673, allocations: 31.97 kB / 463.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004801/0.2721, allocations: 6.241 MB / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2721, allocations: 0 / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.2738, allocations: 1.128 MB / 471.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.2739, allocations: 128.5 kB / 471.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.274, allocations: 31.92 kB / 471.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.2743, allocations: 39.94 kB / 471.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.557e-05/0.2744, allocations: 35.88 kB / 471.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.2744, allocations: 11.98 kB / 471.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002549/0.2747, allocations: 263.2 kB / 471.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2747, allocations: 0 / 471.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006318/0.2753, allocations: 160 kB / 471.9 MB, free: 10.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001853/0.2772, allocations: 1.685 MB / 473.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.2788, allocations: 0.9036 MB / 474.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2788, allocations: 0 / 474.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.2802, allocations: 1.098 MB / 475.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.281, allocations: 118 kB / 475.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008383/0.2894, allocations: 6.692 MB / 482.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.2898, allocations: 0.8898 MB / 483.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002569/0.2901, allocations: 72.33 kB / 483.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.2903, allocations: 151.4 kB / 483.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2903, allocations: 7.938 kB / 483.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3169, allocations: 11.73 MB / 495.2 MB, free: 2.938 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.3171, allocations: 212.8 kB / 495.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.288, allocations: 0 / 495.5 MB, free: 2.684 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)