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.001064/0.001063, allocations: 108.6 kB / 16.51 MB, free: 6.715 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.001093/0.001093, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.473/1.473, allocations: 205.1 MB / 223.3 MB, free: 12.4 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1697/0.1697, allocations: 38 MB / 308.6 MB, free: 6.211 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.001928/0.001928, allocations: 71.89 kB / 374.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2388, allocations: 55.23 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.004926/0.2437, allocations: 5.761 MB / 435.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.2462, allocations: 1.586 MB / 437.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.2467, allocations: 39.75 kB / 437.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004316/0.2471, allocations: 107.3 kB / 437.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000521/0.2477, allocations: 310.8 kB / 437.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.248, allocations: 135.8 kB / 437.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005442/0.2486, allocations: 1.068 MB / 439 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.2488, allocations: 131.5 kB / 439.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.249, allocations: 262.8 kB / 439.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004667/0.2495, allocations: 450.7 kB / 439.8 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.591e-05/0.2496, allocations: 31.94 kB / 439.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.01e-05/0.2497, allocations: 32 kB / 439.8 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.2499, allocations: 215.4 kB / 440.1 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.2501, allocations: 266.6 kB / 440.3 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003515/0.2505, allocations: 0.5879 MB / 440.9 MB, free: 8.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2505, allocations: 0 / 440.9 MB, free: 8.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.2505, allocations: 0 / 440.9 MB, free: 8.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.2505, allocations: 8 kB / 440.9 MB, free: 8.766 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.001532/0.252, allocations: 0.9401 MB / 441.9 MB, free: 7.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.2521, allocations: 8.031 kB / 441.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.828e-05/0.2522, allocations: 86.64 kB / 441.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.338e-05/0.2522, allocations: 48.38 kB / 442 MB, free: 7.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008193/0.2531, allocations: 0.5875 MB / 442.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.2531, allocations: 28.66 kB / 442.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.2532, allocations: 43.91 kB / 442.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.2538, allocations: 0.5517 MB / 443.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2538, allocations: 0 / 443.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.2538, allocations: 16 kB / 443.2 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002709/0.2541, allocations: 84.53 kB / 443.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004237/0.2545, allocations: 366.3 kB / 443.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.2566, allocations: 2.054 MB / 445.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006715/0.2572, allocations: 385.2 kB / 446.1 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004423/0.2577, allocations: 320.8 kB / 446.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.2577, allocations: 8 kB / 446.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.2578, allocations: 38.56 kB / 446.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.2578, allocations: 0 / 446.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.003415/0.2612, allocations: 2.542 MB / 449 MB, free: 240 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.2612, allocations: 89.17 kB / 449.1 MB, free: 132 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/0.2616, allocations: 385.5 kB / 449.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.2616, allocations: 37.7 kB / 449.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.2618, allocations: 240.2 kB / 449.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.2619, allocations: 138.2 kB / 449.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.2621, allocations: 102.2 kB / 450 MB, free: 15.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2622, allocations: 358.7 kB / 450.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.2625, allocations: 249 kB / 450.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003857/0.2629, allocations: 366.7 kB / 450.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007286/0.2637, allocations: 0.6196 MB / 451.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2637, allocations: 4 kB / 451.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001512/0.2652, allocations: 1.017 MB / 452.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2652, allocations: 8.375 kB / 452.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2652, allocations: 8 kB / 452.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009184/0.2662, allocations: 401.3 kB / 453 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.2665, allocations: 87.83 kB / 453 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004659/0.2712, allocations: 4.726 MB / 457.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003086/0.2715, allocations: 43.94 kB / 457.8 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.2716, allocations: 16 kB / 457.8 MB, free: 6.961 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.00024/0.2718, allocations: 213.5 kB / 458 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.297e-05/0.2719, allocations: 39.53 kB / 458.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.2732, allocations: 0.8464 MB / 458.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2733, allocations: 4 kB / 458.9 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2733, allocations: 3.938 kB / 458.9 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2733, allocations: 3.984 kB / 458.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.2752, allocations: 1.417 MB / 460.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2752, allocations: 4 kB / 460.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.2754, allocations: 35.92 kB / 460.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.2765, allocations: 445.3 kB / 460.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.2765, allocations: 35.97 kB / 460.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004677/0.2812, allocations: 6.245 MB / 467.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2812, allocations: 8.188 kB / 467.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.2828, allocations: 1.12 MB / 468.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.2829, allocations: 120.6 kB / 468.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/0.283, allocations: 31.98 kB / 468.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.2833, allocations: 35.94 kB / 468.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/0.2834, allocations: 35.94 kB / 468.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.2834, allocations: 11.98 kB / 468.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.2837, allocations: 263.2 kB / 468.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2837, allocations: 4 kB / 468.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006538/0.2844, allocations: 156 kB / 468.9 MB, free: 11.17 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.002113/0.2865, allocations: 1.689 MB / 470.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.2881, allocations: 0.9072 MB / 471.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.2881, allocations: 0 / 471.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.2895, allocations: 1.087 MB / 472.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008102/0.2904, allocations: 129.9 kB / 472.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008942/0.2993, allocations: 6.475 MB / 479.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.2998, allocations: 0.8859 MB / 480 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.3001, allocations: 72.34 kB / 480.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.3003, allocations: 151.4 kB / 480.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3003, allocations: 0 / 480.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.3234, allocations: 11.93 MB / 492.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.3236, allocations: 217.7 kB / 492.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.37, allocations: 0 / 492.4 MB, free: 3.188 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)